mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-21 14:25:24 -05:00
Only declare strdup() if DECL_STRDUP is defined
This commit is contained in:
parent
e732e12279
commit
13f169ee54
1 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue