mirror of
https://github.com/osmarks/ngircd.git
synced 2025-01-19 12:02:52 +00:00
Fix Get_error usage
The usage of Get_Error is guarded by "ifdef h_errno" in this file, the definition of this function should follow the same rules. Fixes a build error when cross-compiling: https://github.com/ngircd/ngircd/issues/223
This commit is contained in:
parent
bc728f92de
commit
543f44bff8
@ -108,9 +108,7 @@ Resolve_Name( PROC_STAT *s, const char *Host, void (*cbfunc)(int, short))
|
|||||||
return false;
|
return false;
|
||||||
} /* Resolve_Name */
|
} /* Resolve_Name */
|
||||||
|
|
||||||
|
#ifdef h_errno
|
||||||
#if !defined(HAVE_GETADDRINFO) || !defined(HAVE_GETNAMEINFO)
|
|
||||||
#if !defined(WANT_IPV6) && defined(h_errno)
|
|
||||||
static char *
|
static char *
|
||||||
Get_Error( int H_Error )
|
Get_Error( int H_Error )
|
||||||
{
|
{
|
||||||
@ -128,7 +126,6 @@ Get_Error( int H_Error )
|
|||||||
return "unknown error";
|
return "unknown error";
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
/* Do "IDENT" (aka "AUTH") lookup and append result to resolved_addr array */
|
/* Do "IDENT" (aka "AUTH") lookup and append result to resolved_addr array */
|
||||||
|
Loading…
Reference in New Issue
Block a user