From d8e74bb3e1914dd2663e4b25d85a8a237b28550b Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 18 Jun 2000 18:16:54 +0000 Subject: [PATCH] Include memory.h, string.h, and/or strings.h as needed. (this snippet comes from src/system.h). --- lib/strnlen.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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" -- 2.30.2