From: Dan Fandrich Date: Tue, 25 Sep 2007 17:33:56 +0000 (+0000) Subject: Make glibc define the prototype for strcasestr X-Git-Tag: curl-7_17_1~192 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=966130132f75e0c30b176281081721bcb19e234d;p=thirdparty%2Fcurl.git Make glibc define the prototype for strcasestr --- diff --git a/lib/strequal.c b/lib/strequal.c index adf84403dd..49dc4880b1 100644 --- a/lib/strequal.c +++ b/lib/strequal.c @@ -21,6 +21,11 @@ * $Id$ ***************************************************************************/ +#ifndef _GNU_SOURCE +/* glibc needs this to define the prototype for strcasestr */ +#define _GNU_SOURCE 1 +#endif + #include "setup.h" #include