From: Kurt Zeilenga Date: Mon, 26 Jan 2004 20:59:26 +0000 (+0000) Subject: Rest of gai_strerror fix from HEAD (ITS#2643) X-Git-Tag: OPENLDAP_REL_ENG_2_1_27~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42af199ff8c980777d53fb944c0509c9109bef66;p=thirdparty%2Fopenldap.git Rest of gai_strerror fix from HEAD (ITS#2643) --- diff --git a/libraries/libldap/util-int.c b/libraries/libldap/util-int.c index 962db37b48..5bfe5a18ad 100644 --- a/libraries/libldap/util-int.c +++ b/libraries/libldap/util-int.c @@ -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;