configure: check if getaddrinfo() is available

This allows disabling IPv6 support and keeping getaddrinfo().
This commit is contained in:
Miroslav Lichvar
2014-04-25 17:29:59 +02:00
parent 9b137b2e37
commit d243f1f8fe
2 changed files with 7 additions and 1 deletions

View File

@@ -46,7 +46,7 @@ DNS_SetAddressFamily(int family)
DNS_Status
DNS_Name2IPAddress(const char *name, IPAddr *addr)
{
#ifdef HAVE_IPV6
#ifdef HAVE_GETADDRINFO
struct addrinfo hints, *res, *ai;
int result;