From 239b989f79d7cc4497ba922d5e40021851c9cf90 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 4 Jul 2000 17:37:43 +0000 Subject: [PATCH] [!HAVE_DECL_STRNLEN]: Declare strnlen. --- lib/strndup.c | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.11.0