diff options
author | Daniel Stone <daniel@fooishbar.org> | 2008-07-16 02:59:51 +0300 |
---|---|---|
committer | Daniel Stone <daniel@fooishbar.org> | 2008-07-16 03:02:17 +0300 |
commit | ad87c72edcc0d1f56658e0c4e73af335c8d5a516 (patch) | |
tree | f67ba5ed806c326dab2db3565e734c8693943d62 /include | |
parent | c3c901cf44cf16bb33c4176494361b429099a372 (diff) |
DIX: Add strcasestr from FreeBSD
Add strcasestr for use on systems which don't have it.
Diffstat (limited to 'include')
-rw-r--r-- | include/dix-config.h.in | 3 | ||||
-rw-r--r-- | include/dix.h | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/include/dix-config.h.in b/include/dix-config.h.in index ed664a92c..06549183d 100644 --- a/include/dix-config.h.in +++ b/include/dix-config.h.in @@ -501,4 +501,7 @@ /* Need the strncasecmp function. */ #undef NEED_STRNCASECMP +/* Need the strcasestr function. */ +#undef NEED_STRCASESTR + #endif /* _DIX_CONFIG_H_ */ diff --git a/include/dix.h b/include/dix.h index a8c2b3b5a..ac03ce0e9 100644 --- a/include/dix.h +++ b/include/dix.h @@ -609,6 +609,11 @@ extern int xstrcasecmp(const char *s1, const char *s2); extern int xstrncasecmp(const char *s1, const char *s2, size_t n); #endif +#if NEED_STRCASESTR +#define strcasestr xstrcasestr +extern int xstrcasestr(const char *s, const char *find); +#endif + extern int XItoCoreType(int xi_type); extern Bool DevHasCursor(DeviceIntPtr pDev); extern Bool IsPointerDevice( DeviceIntPtr dev); |