]> git.sur5r.net Git - openldap/commitdiff
ITS#2373 add declaration of h_errno
authorHoward Chu <hyc@openldap.org>
Fri, 14 Mar 2003 04:25:39 +0000 (04:25 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 14 Mar 2003 04:25:39 +0000 (04:25 +0000)
libraries/libldap/util-int.c

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