diff options
-rw-r--r-- | lib/strnlen.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/strnlen.c b/lib/strnlen.c index f5681ca38..556d2d55c 100644 --- a/lib/strnlen.c +++ b/lib/strnlen.c @@ -21,7 +21,14 @@ # include <config.h> #endif -#include <string.h> +#if HAVE_STRING_H +# if !STDC_HEADERS && HAVE_MEMORY_H +# include <memory.h> +# endif +# include <string.h> +#else +# include <strings.h> +#endif #ifndef HAVE_DECL_MEMCHR "this configure-time declaration test was not run" |