summaryrefslogtreecommitdiff
path: root/lib/strnlen.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-06-03 21:47:37 +0000
committerJim Meyering <jim@meyering.net>2000-06-03 21:47:37 +0000
commitc588f96c3766d1d14f36edad3a7b24ab76031b65 (patch)
tree0cb14522b0f83df9d038948c26b752efaa87f893 /lib/strnlen.c
parent51cee2cf8d8421938becf1b2de56bf1bd9e29120 (diff)
downloadcoreutils-c588f96c3766d1d14f36edad3a7b24ab76031b65.tar.xz
[!HAVE_DECL_MEMCHR]: Declare memchr.
Diffstat (limited to 'lib/strnlen.c')
-rw-r--r--lib/strnlen.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/strnlen.c b/lib/strnlen.c
index 89f818526..dd22db92e 100644
--- a/lib/strnlen.c
+++ b/lib/strnlen.c
@@ -19,6 +19,13 @@
#include <string.h>
+#ifndef HAVE_DECL_MEMCHR
+"this configure-time declaration test was not run"
+#endif
+#if !HAVE_DECL_MEMCHR
+char *memchr ();
+#endif
+
#undef __strnlen
#undef strnlen