diff --git a/lib/strequal.c b/lib/strequal.c
index adf84403ddebe5950153488e6a3625928436c508..49dc4880b1d0c014a229a0baefb8f0daf719639f 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>