freebsd-ports/www/arena/files/patch-Library::Implementation::HTString.c
Patrick Li 5aeb2ebd59 Fix strcasestr conflict
PR:		34415
Submitted by:	Miguel Mendez <flynn@energyhq.homeip.net>
2002-01-29 20:24:47 +00:00

19 lines
430 B
C

--- Library/Implementation/HTString.c.orig Tue Jan 29 18:10:31 2002
+++ Library/Implementation/HTString.c Tue Jan 29 18:11:09 2002
@@ -65,6 +65,7 @@
/*
** strcasestr(s1,s2) -- like strstr(s1,s2) but case-insensitive.
*/
+#ifndef __FreeBSD__
PUBLIC char * strcasestr (char * s1, char * s2)
{
char * ptr = s1;
@@ -85,7 +86,7 @@
}
return NULL;
}
-
+#endif
/* Allocate a new copy of a string, and returns it