changeset 2705:e17209e9562d

[!HAVE_DECL_STRNLEN]: Declare strnlen.
author Jim Meyering <jim@meyering.net>
date Tue, 04 Jul 2000 17:37:43 +0000
parents 1510de860841
children 07887e712cc0
files lib/strndup.c
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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