mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-06-11 01:30:05 -04:00
Apply protection from glibc #define strdup ....
This commit is contained in:
parent
8d8a583305
commit
1dc9bd0991
1 changed files with 3 additions and 3 deletions
|
|
@ -48,17 +48,17 @@
|
|||
|
||||
#ifndef HAVE_STRDUP
|
||||
/* strdup() is missing, declare our own version */
|
||||
extern char *strdup LDAP_P(( const char *s ));
|
||||
extern char *(strdup) LDAP_P(( const char *s ));
|
||||
#else
|
||||
/* some systems have strdup(), but fail to declare it */
|
||||
extern char *strdup();
|
||||
extern char *(strdup)();
|
||||
#endif
|
||||
|
||||
/*
|
||||
* some systems fail to declare strcasecmp() and strncasecmp()
|
||||
* we need them declared so we can obtain pointers to them
|
||||
*/
|
||||
extern int strcasecmp(), strncasecmp();
|
||||
extern int (strcasecmp)(), (strncasecmp)();
|
||||
|
||||
#ifndef SAFEMEMCPY
|
||||
# if defined( HAVE_MEMMOVE )
|
||||
|
|
|
|||
Loading…
Reference in a new issue