diff options
author | Jim Meyering <jim@meyering.net> | 1996-09-05 02:48:41 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1996-09-05 02:48:41 +0000 |
commit | a2232307a099e1e49f5438a96ac4fed1c46e4078 (patch) | |
tree | 1d2ce9886de79db62ba1a512cce9b3a7a1fd09cb /lib | |
parent | fa145a9f05c90f266754ff5b8e9ff2c81fc5ef3d (diff) | |
download | gnulib-a2232307a099e1e49f5438a96ac4fed1c46e4078.tar.gz |
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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rpmatch.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/rpmatch.c b/lib/rpmatch.c index 55d3bba13f..65674b6ab3 100644 --- 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 |