commit 628c6c962b1054de4c27304f53c4ac7c50c79a11 from: Alexander Barton date: Fri Apr 09 18:06:44 2010 UTC Only compile in Get_Error() if really needed This fixes "resolve.c:150: warning: ‘Get_Error’ defined but not used". commit - 1ed49de83a335713ee437171335c93725dd19ee6 commit + 628c6c962b1054de4c27304f53c4ac7c50c79a11 blob - 37d1c51c9fd79a2d538381fe3b2be695e98b1797 blob + bccf5180f65ce0b839db30e28105986d40d49f85 --- src/ngircd/resolve.c +++ src/ngircd/resolve.c @@ -144,8 +144,8 @@ Resolve_Init(RES_STAT *s) } -#ifndef WANT_IPV6 -#ifdef h_errno +#if !defined(HAVE_GETADDRINFO) || !defined(HAVE_GETNAMEINFO) +#if !defined(WANT_IPV6) && defined(h_errno) static char * Get_Error( int H_Error ) { @@ -162,8 +162,8 @@ Get_Error( int H_Error ) } return "unknown error"; } -#endif /* h_errno */ -#endif /* WANT_IPV6 */ +#endif +#endif /* Do "IDENT" (aka "AUTH") lookup and append result to resolved_addr array */