From 6385fdb08f5c7c5484e81edfc80fb68b60d7e845 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Mon, 24 Mar 2003 04:08:11 +0000 Subject: [PATCH] h_errno fix --- libraries/libldap/util-int.c | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.39.5