/ curl Public
Support IPv6 adresses without getaddrinfo #4662
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge.
This makes the autotools build behave like the CMake build in this regard: support IPv6 addresses (
ENABLE_IPV6) by default as long as
getaddrinfois only needed for DNS resolution (
This also fixes the CMake build with
ENABLE_IPV6set to the default
OFF, and no
getaddrinfoavailable. The theaded resolver code guards the calls to
HAVE_GETADDRINFO, but the synchronous resolver code assumes that
HAVE_GETADDRINFO, which it did only implicitly when using the autotools build.
Tested with classic MinGW, which disables
getaddrinfoby default by targeting Windows 2000, and both the threaded and synchronous resolvers.