]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Merge pull request #240 from bkuhls/fix_Get_Error
authorAlexander Barton <alex@barton.de>
Sun, 17 Sep 2017 21:27:48 +0000 (23:27 +0200)
committerGitHub <noreply@github.com>
Sun, 17 Sep 2017 21:27:48 +0000 (23:27 +0200)
Fix Get_Error usage

src/ngircd/resolve.c

index 32791901215c475c95982616e8d95b321efe7680..e1903254605fafbf385f87159a6a5e6a601edaa8 100644 (file)
@@ -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 )
 {
@@ -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 */