summaryrefslogtreecommitdiff
path: root/lib/strequal.c
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2007-09-25 17:33:56 +0000
committerDan Fandrich <dan@coneharvesters.com>2007-09-25 17:33:56 +0000
commit966130132f75e0c30b176281081721bcb19e234d (patch)
treecc2c880c539554c668135b42b08b7a49ae8577fc /lib/strequal.c
parenta19de6e9ac37df9bdff0903dffeafafdb1557894 (diff)
downloadcurl-966130132f75e0c30b176281081721bcb19e234d.tar.gz
Make glibc define the prototype for strcasestr
Diffstat (limited to 'lib/strequal.c')
-rw-r--r--lib/strequal.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/strequal.c b/lib/strequal.c
index adf84403d..49dc4880b 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 <string.h>