From ad87c72edcc0d1f56658e0c4e73af335c8d5a516 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Wed, 16 Jul 2008 02:59:51 +0300 Subject: DIX: Add strcasestr from FreeBSD Add strcasestr for use on systems which don't have it. --- include/dix.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/dix.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); -- cgit v1.2.3