]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
h_errno fix
authorKurt Zeilenga <kurt@openldap.org>
Mon, 24 Mar 2003 04:08:11 +0000 (04:08 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 24 Mar 2003 04:08:11 +0000 (04:08 +0000)
libraries/libldap/util-int.c

index 23bf1d194c6cdab1d8262a3c24ba415d6366df9e..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 (unless defined by a macro).
+ */
+extern int h_errno;
+#endif
+
 #ifndef LDAP_R_COMPILE
 # undef HAVE_REENTRANT_FUNCTIONS
 # undef HAVE_CTIME_R