From: Jim Meyering Date: Tue, 4 Jul 2000 17:37:43 +0000 (+0000) Subject: [!HAVE_DECL_STRNLEN]: Declare strnlen. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=239b989f79d7cc4497ba922d5e40021851c9cf90;p=pspp [!HAVE_DECL_STRNLEN]: Declare strnlen. --- diff --git a/lib/strndup.c b/lib/strndup.c index 6f59717cfa..136e51c736 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