changeset 6164:83bee8e13391

Include a header, to define NULL.
author Bruno Haible <bruno@clisp.org>
date Wed, 31 Aug 2005 11:51:18 +0000
parents bba2240c9260
children 68149d975735
files lib/ChangeLog lib/strcasestr.c lib/strstr.c
diffstat 3 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -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.
--- a/lib/strcasestr.c
+++ b/lib/strcasestr.c
@@ -24,6 +24,7 @@
 #include "strcasestr.h"
 
 #include <ctype.h>
+#include <stddef.h>  /* for NULL */
 
 #if HAVE_MBRTOWC
 # include "mbuiter.h"
--- a/lib/strstr.c
+++ b/lib/strstr.c
@@ -23,6 +23,8 @@
 /* Specification.  */
 #include "strstr.h"
 
+#include <stddef.h>  /* for NULL */
+
 #if HAVE_MBRTOWC
 # include "mbuiter.h"
 #endif