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 86b7d4cd953e9b5fa023f9f00fb52e9bfaa0550e..5d5737164d5d5f398c5d619a1e5df4ac63de9a22 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 5a0fc426ec001c69275a39780505c2350c71d2e0..64291a17cda0f0c247d318c82a27a19740598d9b 100644 (file)
@@ -24,6 +24,7 @@
 #include "strcasestr.h"
 
 #include <ctype.h>
+#include <stddef.h>  /* for NULL */
 
 #if HAVE_MBRTOWC
 # include "mbuiter.h"
index 3faae014079eb81ac2ad7674f440a46e65d88c29..496e19b06ad12587f0f3d4dc74d74f3f046de011 100644 (file)
@@ -23,6 +23,8 @@
 /* Specification.  */
 #include "strstr.h"
 
+#include <stddef.h>  /* for NULL */
+
 #if HAVE_MBRTOWC
 # include "mbuiter.h"
 #endif