From 59ee3628d5db511ce5527ce4ddbf126e929d7da8 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Tue, 15 May 2018 19:23:05 -0700 Subject: fixes #430 Unable to build in MSYS + Win-builds fixes #438 Consider dropping AI_V4MAPPED --- src/platform/windows/win_resolv.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/platform/windows/win_resolv.c') diff --git a/src/platform/windows/win_resolv.c b/src/platform/windows/win_resolv.c index 2bc68c32..54f1c61c 100644 --- a/src/platform/windows/win_resolv.c +++ b/src/platform/windows/win_resolv.c @@ -127,15 +127,12 @@ win_resolv_task(void *arg) // We treat these all as IP addresses. The service and the // host part are split. memset(&hints, 0, sizeof(hints)); + hints.ai_flags = AI_ADDRCONFIG | AI_NUMERICSERV; if (item->passive) { hints.ai_flags |= AI_PASSIVE; } - hints.ai_flags |= AI_ADDRCONFIG; hints.ai_protocol = item->proto; hints.ai_family = item->family; - if (item->family == AF_INET6) { - hints.ai_flags |= AI_V4MAPPED; - } rv = getaddrinfo(item->name, item->serv, &hints, &results); if (rv != 0) { -- cgit v1.2.3-70-g09d2