Skip to content

Add additional condition for including stdint.h in lib/http.h#10185

Closed
camblomquist wants to merge 1 commit intocurl:masterfrom
camblomquist:http_include_stdint
Closed

Add additional condition for including stdint.h in lib/http.h#10185
camblomquist wants to merge 1 commit intocurl:masterfrom
camblomquist:http_include_stdint

Conversation

@camblomquist
Copy link
Copy Markdown
Contributor

stdint.h was only included in http.h when ENABLE_QUIC was defined, but symbols from stdint.h are also used when USE_NGHTTP2 is defined. This causes build errors when USE_NGHTTP2 is defined but ENABLE_QUIC is not.

I don't know if such a configuration should be possible, but I had a friend encounter it while building media-autobuild_suite.

Fixes m-ab-s/media-autobuild_suite#2353

stdint.h was only included in http.h when ENABLE_QUIC was defined, but symbols from stdint.h are also used when USE_NGHTTP2 is defined. This causes build errors when USE_NGHTTP2 is defined but ENABLE_QUIC is not.
@bagder
Copy link
Copy Markdown
Member

bagder commented Dec 31, 2022

Thanks!

@bagder bagder closed this in 9932701 Dec 31, 2022
bch pushed a commit to bch/curl that referenced this pull request Jul 19, 2023
stdint.h was only included in http.h when ENABLE_QUIC was defined, but
symbols from stdint.h are also used when USE_NGHTTP2 is defined. This
causes build errors when USE_NGHTTP2 is defined but ENABLE_QUIC is not.

Closes curl#10185
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Multiple errors running make when git update for curl

2 participants