projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa145a9
)
Make sure NULL is defined by including stddef.h
author
Jim Meyering
<jim@meyering.net>
Thu, 5 Sep 1996 02:48:41 +0000
(
02:48
+0000)
committer
Jim Meyering
<jim@meyering.net>
Thu, 5 Sep 1996 02:48:41 +0000
(
02:48
+0000)
(if STDC_HEADERS || _LIBC) or simply defining it (otherwise).
Include sys/types.h for definition of size_t needed by regex.h.
lib/rpmatch.c
patch
|
blob
|
history
diff --git
a/lib/rpmatch.c
b/lib/rpmatch.c
index 55d3bba13f4d2765a9ffe218ac013ec86a88b993..65674b6ab3095a0d5cc2408719926b602cad4086 100644
(file)
--- a/
lib/rpmatch.c
+++ b/
lib/rpmatch.c
@@
-21,9
+21,15
@@
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#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