]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
curl_setup: fix `CURLRES_IPV6` condition
authorMarcel Raad <Marcel.Raad@teamviewer.com>
Thu, 5 Dec 2019 13:13:46 +0000 (14:13 +0100)
committerMarcel Raad <Marcel.Raad@teamviewer.com>
Thu, 5 Dec 2019 19:17:47 +0000 (20:17 +0100)
Move the definition of `CURLRES_IPV6` to before undefining
`HAVE_GETADDRINFO`. Regression from commit 67a08dca27a which caused
some tests to fail and others to be skipped with c-ares.

Fixes https://github.com/curl/curl/issues/4673
Closes https://github.com/curl/curl/pull/4677

lib/curl_setup.h

index 5d6e8d6f7038cd6e67844c7b6ca4addc0b708564..4ecda6a9b4062d5c9bffcb867183b077a603d027 100644 (file)
  * Mutually exclusive CURLRES_* definitions.
  */
 
+#if defined(ENABLE_IPV6) && defined(HAVE_GETADDRINFO)
+#  define CURLRES_IPV6
+#else
+#  define CURLRES_IPV4
+#endif
+
 #ifdef USE_ARES
 #  define CURLRES_ASYNCH
 #  define CURLRES_ARES
 #  define CURLRES_SYNCH
 #endif
 
-#if defined(ENABLE_IPV6) && defined(HAVE_GETADDRINFO)
-#  define CURLRES_IPV6
-#else
-#  define CURLRES_IPV4
-#endif
-
 /* ---------------------------------------------------------------- */
 
 /*