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 | 1a9771061b107315255f8b86c9850f8f26ad7987 (patch) | |
tree | 189c49fe09fb67d7b6419ce73169d0a95b1a9c2a /lib | |
parent | 5c8eaa8139c2dae18cc3dc57053c3564048ae6ad (diff) | |
download | coreutils-1a9771061b107315255f8b86c9850f8f26ad7987.tar.xz |
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 55d3bba13..65674b6ab 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 |