From: Kurt Zeilenga Date: Mon, 24 May 1999 19:08:39 +0000 (+0000) Subject: Apply protection from glibc #define strdup .... X-Git-Tag: OPENLDAP_REL_ENG_1_2_2~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1dc9bd0991493763b520289218ddc8d87f5294db;p=thirdparty%2Fopenldap.git Apply protection from glibc #define strdup .... --- diff --git a/include/ac/string.h b/include/ac/string.h index b5357e4b82..6573cb1413 100644 --- a/include/ac/string.h +++ b/include/ac/string.h @@ -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 )