aboutsummaryrefslogtreecommitdiff
path: root/lib/curl_setup.h
diff options
context:
space:
mode:
authorMarcel Raad <Marcel.Raad@teamviewer.com>2019-11-26 15:06:31 +0100
committerMarcel Raad <Marcel.Raad@teamviewer.com>2019-12-03 21:37:33 +0100
commit67a08dca27a6a07b36c7f97252e284ca957ff1a5 (patch)
tree0c7d64fa489631d4057904ce0482fd86ab56dca7 /lib/curl_setup.h
parentab712afa8fb9d2bf7850aa8d031937ca515efa01 (diff)
curl_setup: disable IPv6 resolver without `getaddrinfo`
Also, use `CURLRES_IPV6` only for actual DNS resolution, not for IPv6 address support. This makes it possible to connect to IPv6 literals by setting `ENABLE_IPV6` even without `getaddrinfo` support. It also fixes the CMake build when using the synchronous resolver without `getaddrinfo` support. Closes https://github.com/curl/curl/pull/4662
Diffstat (limited to 'lib/curl_setup.h')
-rw-r--r--lib/curl_setup.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/curl_setup.h b/lib/curl_setup.h
index cc36e28ec..5d6e8d6f7 100644
--- a/lib/curl_setup.h
+++ b/lib/curl_setup.h
@@ -585,7 +585,7 @@
# define CURLRES_SYNCH
#endif
-#ifdef ENABLE_IPV6
+#if defined(ENABLE_IPV6) && defined(HAVE_GETADDRINFO)
# define CURLRES_IPV6
#else
# define CURLRES_IPV4