]> git.sur5r.net Git - openldap/commitdiff
Only declare strdup() if DECL_STRDUP is defined
authorBen Collins <bcollins@openldap.org>
Mon, 15 Mar 1999 00:19:46 +0000 (00:19 +0000)
committerBen Collins <bcollins@openldap.org>
Mon, 15 Mar 1999 00:19:46 +0000 (00:19 +0000)
include/ac/string.h

index 1fc99298a59689c6eb19a582a853d89f08ea755a..576205c7cf9fc433587ce54f31ee896478034947 100644 (file)
@@ -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
 
 /*