diff --git a/src/ngircd/resolve.c b/src/ngircd/resolve.c index e1903254..a8a163f0 100644 --- a/src/ngircd/resolve.c +++ b/src/ngircd/resolve.c @@ -108,6 +108,7 @@ Resolve_Name( PROC_STAT *s, const char *Host, void (*cbfunc)(int, short)) return false; } /* Resolve_Name */ +#if !defined(HAVE_WORKING_GETADDRINFO) || !defined(HAVE_GETNAMEINFO) #ifdef h_errno static char * Get_Error( int H_Error ) @@ -126,6 +127,7 @@ Get_Error( int H_Error ) return "unknown error"; } #endif +#endif /* Do "IDENT" (aka "AUTH") lookup and append result to resolved_addr array */