From 97c2c9c955e0b53e39c9b97d710ea0582fcf56a5 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 14 Mar 2003 04:25:39 +0000 Subject: [PATCH] ITS#2373 add declaration of h_errno --- libraries/libldap/util-int.c | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.39.5