2011-10-23 06:28:56 -04:00
|
|
|
$OpenBSD: patch-src_Resolver_cc,v 1.9 2011/10/23 10:28:56 sthen Exp $
|
|
|
|
--- src/Resolver.cc.orig Tue Sep 13 05:29:47 2011
|
|
|
|
+++ src/Resolver.cc Fri Oct 21 15:05:07 2011
|
|
|
|
@@ -794,8 +794,6 @@ void Resolver::LookupOne(const char *name)
|
2004-05-24 03:04:44 -04:00
|
|
|
# undef h_errno // it could be a macro, but we want it to be local variable.
|
2002-10-01 08:13:02 -04:00
|
|
|
int h_errno=0;
|
|
|
|
ha=getipnodebyname(name,af,0,&h_errno);
|
|
|
|
-# elif defined(HAVE_GETHOSTBYNAME2)
|
|
|
|
- ha=gethostbyname2(name,af);
|
|
|
|
# else
|
|
|
|
if(af==AF_INET)
|
|
|
|
ha=gethostbyname(name);
|