From a2232307a099e1e49f5438a96ac4fed1c46e4078 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 5 Sep 1996 02:48:41 +0000 Subject: [PATCH] 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. --- lib/rpmatch.c | 6 ++++++ 1 file changed, 6 insertions(+) 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 # include +#else +# ifndef NULL +# define NULL 0 +# endif #endif +#include #include #if ENABLE_NLS -- 2.30.2