# HG changeset patch # User Jim Meyering # Date 961352214 0 # Node ID 18ce3c88a946a97ed70dbabd54fba63339641479 # Parent 7e84651c4aa98d3ee63e3a000d601e454917bd9f 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 --- 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"