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: TEXTUTILS-1_19d~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1a9771061b107315255f8b86c9850f8f26ad7987;p=platform%2Fupstream%2Fcoreutils.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 55d3bba..65674b6 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