Include a header, to define NULL.
authorBruno Haible <bruno@clisp.org>
Wed, 31 Aug 2005 11:51:18 +0000 (11:51 +0000)
committerBruno Haible <bruno@clisp.org>
Wed, 31 Aug 2005 11:51:18 +0000 (11:51 +0000)
lib/ChangeLog
lib/strcasestr.c
lib/strstr.c

index 86b7d4c..5d57371 100644 (file)
@@ -1,3 +1,9 @@
+2005-08-31  Bruno Haible  <bruno@clisp.org>
+
+       * strstr.c: Include <stddef.h>, for NULL.
+       * strcasestr.c: Likewise.
+       Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
+
 2005-08-30  "Oskar Liljeblad" <oskar@osk.mine.nu>
 
        * iconvme.h: Add prototype for iconv_alloc.
index 5a0fc42..64291a1 100644 (file)
@@ -24,6 +24,7 @@
 #include "strcasestr.h"
 
 #include <ctype.h>
+#include <stddef.h>  /* for NULL */
 
 #if HAVE_MBRTOWC
 # include "mbuiter.h"
index 3faae01..496e19b 100644 (file)
@@ -23,6 +23,8 @@
 /* Specification.  */
 #include "strstr.h"
 
+#include <stddef.h>  /* for NULL */
+
 #if HAVE_MBRTOWC
 # include "mbuiter.h"
 #endif