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 /*