changeset 685:d5a36bb662b1

Make sure NULL is defined by including stddef.h (if STDC_HEADERS || _LIBC) or simply defining it (otherwise). Include sys/types.h for definition of size_t needed by regex.h.
author Jim Meyering <jim@meyering.net>
date Thu, 05 Sep 1996 02:48:41 +0000
parents 78d1a4cb7cca
children 8a8967d6be38
files lib/rpmatch.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lib/rpmatch.c
+++ b/lib/rpmatch.c
@@ -21,9 +21,15 @@
 #endif
 
 #if STDC_HEADERS || _LIBC
+# include <stddef.h>
 # include <stdlib.h>
+#else
+# ifndef NULL
+#  define NULL 0
+# endif
 #endif
 
+#include <sys/types.h>
 #include <regex.h>
 
 #if ENABLE_NLS