From: Ben Collins Date: Mon, 15 Mar 1999 00:19:46 +0000 (+0000) Subject: Only declare strdup() if DECL_STRDUP is defined X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~376 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=13f169ee54716af833a4120511ae9b1896bd1ee9;p=openldap Only declare strdup() if DECL_STRDUP is defined --- 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 /*