Repository navigation
Conversation
bagder
approved these changes
Nov 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.Suggestion cannot be applied right now. Please check back later.
Drop zlib from the MSVC CI job as this is fragile, potentially unsafe,
and requires hacks to make it build:
unistd.hfrom its public headers,also on Windows. (it's available in mingw-w64, not in MSVC)
HAVE_UNISTD_Hin itspublic headers.
meaning its headers cannot be safely used in a cross-build or in a
different target env.
HAVE_UNISTD_Hbecame unused in 1.4, but still set. It maybreak dependent 1st-party code that uses this symbol to communicate
unistd.hpresence.z_off_ttype is not fixed-size, and depends on non-standard typeoff_t, that depends e.g. onunistd.h.z_off_tdepending on the above logic, the ABI may break in anaffected API e.g.
gzseek*(),gztell*(),gzoffset*(), when someof the consume-time logic differs from the build-time one. (curl not
using these functions, but there may be more.)
E.g. using an MSYS2/mingw UCRT x64-built zlib.dll in an equivalent
MSVC build.
unistd.h, and depends onoff_t. It does notdefine
HAVE_UNISTD_Hthough.Follow-up to 9584627 #24037
Follow-up to c129d0b #17561
The root of evil here is that the API uses a type that has a loosly
defined size, and then many kinds of fragile craziness is necessary
to keep this in sync with env, headers and the binary. Probably
introducing a fixed 64-bit type and always enabling 64-bit APIs
internally would fix this, at least on Windows, where a build-time
env is not necessary the same as the consume-time env.