From 13f169ee54716af833a4120511ae9b1896bd1ee9 Mon Sep 17 00:00:00 2001 From: Ben Collins Date: Mon, 15 Mar 1999 00:19:46 +0000 Subject: [PATCH] Only declare strdup() if DECL_STRDUP is defined --- include/ac/string.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/ac/string.h b/include/ac/string.h index 1fc99298a5..576205c7cf 100644 --- a/include/ac/string.h +++ b/include/ac/string.h @@ -55,8 +55,10 @@ extern char *ldap_pvt_strdup( const char * s ); # undef strdup # define strdup(s) ldap_pvt_strdup(s) #else - /* some systems fail to declare strdup */ - extern char *strdup(); +# ifdef DECL_STRDUP + /* some systems fail to declare strdup */ + extern char *strdup(); +# endif #endif /* -- 2.39.5