From: Jim Meyering Date: Sun, 18 Jun 2000 18:16:54 +0000 (+0000) Subject: Include memory.h, string.h, and/or strings.h as needed. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8e74bb3e1914dd2663e4b25d85a8a237b28550b;p=pspp Include memory.h, string.h, and/or strings.h as needed. (this snippet comes from src/system.h). --- diff --git a/lib/strnlen.c b/lib/strnlen.c index f5681ca383..556d2d55ce 100644 --- a/lib/strnlen.c +++ b/lib/strnlen.c @@ -21,7 +21,14 @@ # include #endif -#include +#if HAVE_STRING_H +# if !STDC_HEADERS && HAVE_MEMORY_H +# include +# endif +# include +#else +# include +#endif #ifndef HAVE_DECL_MEMCHR "this configure-time declaration test was not run"