openbsd-ports/net/lftp/patches/patch-src_Resolver_cc
2011-10-23 10:28:56 +00:00

13 lines
506 B
Plaintext

$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)
# undef h_errno // it could be a macro, but we want it to be local variable.
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);