diff --git a/libraries/libldap/util-int.c b/libraries/libldap/util-int.c index 57a2464af8..962db37b48 100644 --- a/libraries/libldap/util-int.c +++ b/libraries/libldap/util-int.c @@ -33,10 +33,12 @@ #include "ldap-int.h" +#ifndef h_errno /* newer systems declare this in for you, older ones don't. - * harmless to declare it again. + * harmless to declare it again (unless defined by a macro). */ extern int h_errno; +#endif #ifndef LDAP_R_COMPILE # undef HAVE_REENTRANT_FUNCTIONS