From: Jim Meyering Date: Thu, 5 Sep 1996 02:48:41 +0000 (+0000) Subject: Make sure NULL is defined by including stddef.h X-Git-Tag: cvs-readonly~8487 X-Git-Url: http://erislabs.net/gitweb/?a=commitdiff_plain;h=a2232307a099e1e49f5438a96ac4fed1c46e4078;p=gnulib.git 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. --- 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 # include +#else +# ifndef NULL +# define NULL 0 +# endif #endif +#include #include #if ENABLE_NLS