curl/curl-7.19.7-ares-ipv6.patch
2010-02-11 11:31:31 +00:00

14 lines
477 B
Diff

diff --git a/lib/hostares.c b/lib/hostares.c
index 7cc24de..46e0f8a 100644
--- a/lib/hostares.c
+++ b/lib/hostares.c
@@ -381,7 +381,7 @@ Curl_addrinfo *Curl_getaddrinfo(struct connectdata *conn,
switch(data->set.ip_version) {
default:
-#if ARES_VERSION >= 0x010601
+#if 0
family = PF_UNSPEC; /* supported by c-ares since 1.6.1, so for older
c-ares versions this just falls through and defaults
to PF_INET */