From c34c42dec373e41065e753fcc3b13f3621ce835f Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Fri, 14 Mar 2003 04:56:08 +0000 Subject: [PATCH] just in case does something like #define h_errno (* __h_errno()) --- libraries/libldap/util-int.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.5