]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Add gai_strerror detection and replacement function prototype
authorKurt Zeilenga <kurt@openldap.org>
Mon, 30 Oct 2000 19:13:40 +0000 (19:13 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 30 Oct 2000 19:13:40 +0000 (19:13 +0000)
include/ac/socket.h
include/portable.h.in

index e48dcb8f8454376043e299357477ff0ce1b98e00..26af7a571ad571badf8c98caa6cdb89bd932957a 100644 (file)
@@ -193,4 +193,13 @@ LDAP_F (int) ldap_pvt_inet_aton LDAP_P(( const char *, struct in_addr * ));
 #      define INET6_ADDRSTRLEN 46
 #endif
 
+#ifdef HAVE_GETADDRINFO
+#      ifdef HAVE_GAI_STRERROR
+#              define AC_GAI_STRERROR(x)       (gai_strerror((x)))
+#      else
+#              define AC_GAI_STRERROR(x)       (ldap_pvt_gai_strerror((x)))
+               char * ldap_pvt_gai_strerror( int );
+#      endif
+#endif
+
 #endif /* _AC_SOCKET_H_ */
index 59fef45f527683ef4a2e334ab40fc48ad080c754..6b1ed017e22a2e69b176026fc35a2eae2e279a99 100644 (file)
 /* Define if you have the flock function.  */
 #undef HAVE_FLOCK
 
+/* Define if you have the gai_strerror function.  */
+#undef HAVE_GAI_STRERROR
+
 /* Define if you have the getaddrinfo function.  */
 #undef HAVE_GETADDRINFO