]> git.sur5r.net Git - openldap/commitdiff
just in case <netdb.h> does something like
authorKurt Zeilenga <kurt@openldap.org>
Fri, 14 Mar 2003 04:56:08 +0000 (04:56 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 14 Mar 2003 04:56:08 +0000 (04:56 +0000)
#define h_errno (* __h_errno())

libraries/libldap/util-int.c

index 57a2464af87a5bd83e024816a09d945016f04fc8..962db37b480f57708005191fa1db056e0094b579 100644 (file)
 
 #include "ldap-int.h"
 
+#ifndef h_errno
 /* newer systems declare this in <netdb.h> 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