summaryrefslogtreecommitdiff
path: root/include/dix.h
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2008-07-16 02:59:51 +0300
committerDaniel Stone <daniel@fooishbar.org>2008-07-16 03:02:17 +0300
commitad87c72edcc0d1f56658e0c4e73af335c8d5a516 (patch)
treef67ba5ed806c326dab2db3565e734c8693943d62 /include/dix.h
parentc3c901cf44cf16bb33c4176494361b429099a372 (diff)
DIX: Add strcasestr from FreeBSD
Add strcasestr for use on systems which don't have it.
Diffstat (limited to 'include/dix.h')
-rw-r--r--include/dix.h5
1 files changed, 5 insertions, 0 deletions
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);