diff options
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); |