Skip to content

Commit

Permalink
Fix Get_error usage
Browse files Browse the repository at this point in the history
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:
#223
  • Loading branch information
bkuhls committed Sep 13, 2017
1 parent bc728f9 commit 543f44b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/ngircd/resolve.c
Expand Up @@ -108,9 +108,7 @@ Resolve_Name( PROC_STAT *s, const char *Host, void (*cbfunc)(int, short))
return false;
} /* Resolve_Name */


#if !defined(HAVE_GETADDRINFO) || !defined(HAVE_GETNAMEINFO)
#if !defined(WANT_IPV6) && defined(h_errno)
#ifdef h_errno
static char *
Get_Error( int H_Error )
{
Expand All @@ -128,7 +126,6 @@ Get_Error( int H_Error )
return "unknown error";
}
#endif
#endif


/* Do "IDENT" (aka "AUTH") lookup and append result to resolved_addr array */
Expand Down

0 comments on commit 543f44b

Please sign in to comment.