Commit 485b8dcb authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(isc_mktcpaddress): Declare error_num if USE_GETIPNODEBYNAME is

	defined.  Test USE_GETIPNODEBYNAME instead of
	HAVE_GETIPNODEBYNAME to determine if it should be used.
parent 565de0d1
......@@ -140,6 +140,9 @@ isc_mktcpaddress(const char *address,
union sockaddrs addr;
struct hostent *hp;
struct servent *sp;
#ifdef USE_GETIPNODEBYNAME
int error_num;
#endif
memset(&addr, 0, sizeof(addr));
......@@ -173,7 +176,7 @@ isc_mktcpaddress(const char *address,
return NULL;
#endif
}
#ifdef HAVE_GETIPNODEBYNAME
#ifdef USE_GETIPNODEBYNAME
else if ((hp = getipnodebyname(address,
address_family,
AI_ADDRCONFIG,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment