From: Kurt Zeilenga Date: Mon, 24 Mar 2003 04:08:11 +0000 (+0000) Subject: h_errno fix X-Git-Tag: OPENLDAP_REL_ENG_2_1_17~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6385fdb08f5c7c5484e81edfc80fb68b60d7e845;p=thirdparty%2Fopenldap.git h_errno fix --- diff --git a/libraries/libldap/util-int.c b/libraries/libldap/util-int.c index 23bf1d194c..962db37b48 100644 --- a/libraries/libldap/util-int.c +++ b/libraries/libldap/util-int.c @@ -33,6 +33,13 @@ #include "ldap-int.h" +#ifndef h_errno +/* newer systems declare this in for you, older ones don't. + * harmless to declare it again (unless defined by a macro). + */ +extern int h_errno; +#endif + #ifndef LDAP_R_COMPILE # undef HAVE_REENTRANT_FUNCTIONS # undef HAVE_CTIME_R