curl_setup: fix `CURLRES_IPV6` condition

Move the definition of `CURLRES_IPV6` to before undefining
`HAVE_GETADDRINFO`. Regression from commit 67a08dca27 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
This commit is contained in:
Marcel Raad 2019-12-05 14:13:46 +01:00
parent 914975fe6e
commit bf24e0f928
No known key found for this signature in database
GPG Key ID: FE4D8BC5EE1701DD
1 changed files with 6 additions and 6 deletions

View File

@ -571,6 +571,12 @@
* 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
@ -585,12 +591,6 @@
# define CURLRES_SYNCH
#endif
#if defined(ENABLE_IPV6) && defined(HAVE_GETADDRINFO)
# define CURLRES_IPV6
#else
# define CURLRES_IPV4
#endif
/* ---------------------------------------------------------------- */
/*