From 42af199ff8c980777d53fb944c0509c9109bef66 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Mon, 26 Jan 2004 20:59:26 +0000 Subject: [PATCH] Rest of gai_strerror fix from HEAD (ITS#2643) --- libraries/libldap/util-int.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.39.5