summaryrefslogtreecommitdiff
path: root/lib/strndup.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-07-04 17:37:43 +0000
committerJim Meyering <jim@meyering.net>2000-07-04 17:37:43 +0000
commit1954ebfb9384405b77b1270c26d5d6e1e30e4741 (patch)
tree8eea1e8576177079418e1f49f58c37e4bda16639 /lib/strndup.c
parent1f058330625413c32ae4feaa70ca9a71dfb6f4e9 (diff)
downloadcoreutils-1954ebfb9384405b77b1270c26d5d6e1e30e4741.tar.xz
[!HAVE_DECL_STRNLEN]: Declare strnlen.
Diffstat (limited to 'lib/strndup.c')
-rw-r--r--lib/strndup.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/strndup.c b/lib/strndup.c
index 6f59717cf..136e51c73 100644
--- a/lib/strndup.c
+++ b/lib/strndup.c
@@ -31,6 +31,13 @@
char *malloc ();
#endif
+#ifndef HAVE_DECL_STRNLEN
+"this configure-time declaration test was not run"
+#endif
+#if !HAVE_DECL_STRNLEN
+size_t strnlen ();
+#endif
+
#undef __strndup
#undef strndup