]> git.sur5r.net Git - openldap/commitdiff
Apply protection from glibc #define strdup ....
authorKurt Zeilenga <kurt@openldap.org>
Mon, 24 May 1999 19:08:39 +0000 (19:08 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 24 May 1999 19:08:39 +0000 (19:08 +0000)
include/ac/string.h

index b5357e4b82b212d7f0960dcfc4baa1255ac59c08..6573cb1413a66098a4ed68a486753e00c8945dc7 100644 (file)
 
 #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 )