aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sysdeps/generic/memchr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/generic/memchr.c b/sysdeps/generic/memchr.c
index b6f472276b..ba2738c069 100644
--- a/sysdeps/generic/memchr.c
+++ b/sysdeps/generic/memchr.c
@@ -31,6 +31,10 @@ Cambridge, MA 02139, USA. */
# define __ptr_t char *
#endif /* C++ or ANSI C. */
+#if defined (_LIBC)
+# include <string.h>
+#endif
+
#if defined (HAVE_LIMITS_H) || defined (_LIBC)
# include <limits.h>
#endif