diff --git a/libraries/libldap/util-int.c b/libraries/libldap/util-int.c index 23bf1d194c..57a2464af8 100644 --- a/libraries/libldap/util-int.c +++ b/libraries/libldap/util-int.c @@ -33,6 +33,11 @@ #include "ldap-int.h" +/* newer systems declare this in for you, older ones don't. + * harmless to declare it again. + */ +extern int h_errno; + #ifndef LDAP_R_COMPILE # undef HAVE_REENTRANT_FUNCTIONS # undef HAVE_CTIME_R