]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Rest of gai_strerror fix from HEAD (ITS#2643)
authorKurt Zeilenga <kurt@openldap.org>
Mon, 26 Jan 2004 20:59:26 +0000 (20:59 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 26 Jan 2004 20:59:26 +0000 (20:59 +0000)
libraries/libldap/util-int.c

index 962db37b480f57708005191fa1db056e0094b579..5bfe5a18add9c998acbd4e5e50bc5267c2f75d64 100644 (file)
@@ -540,7 +540,8 @@ char * ldap_pvt_get_fqdn( char *name )
        return fqdn;
 }
 
-#if defined( HAVE_GETADDRINFO ) && !defined( HAVE_GAI_STRERROR )
+#if ( defined( HAVE_GETADDRINFO ) || defined( HAVE_GETNAMEINFO ) ) \
+       && !defined( HAVE_GAI_STRERROR )
 char *ldap_pvt_gai_strerror (int code) {
        static struct {
                int code;