]> git.ipfire.org Git - thirdparty/curl.git/commit
sectransp: add support for HTTP/2 in gcc builds
authorViktor Szakats <commit@vsz.me>
Wed, 5 Mar 2025 23:17:08 +0000 (00:17 +0100)
committerViktor Szakats <commit@vsz.me>
Thu, 6 Mar 2025 19:33:43 +0000 (20:33 +0100)
commit2d94439eaa8da4fe11f99872a8b44087f74f88b0
treeeeda39d7c719b8087c8731917aab647a2145f426
parent9463769f2e2dba9eeff554a88e5df5195d2c774b
sectransp: add support for HTTP/2 in gcc builds

Before this patch `--http2` did not work in gcc builds with Secure
Transport, because ALPN relied on a compiler supporting the
`HAVE_BUILTIN_AVAILABLE` aka `__builtin_available()` feature. This
is clang-specific and missing from gcc (as of gcc v14).

Add support for ALPN and HTTP/2 when this compiler feature is missing.

Also drop test exceptions from GHA/macos in CI.

Follow-up to 092f6815c808489f1cea3df8449e16dff2c35e6b
Ref: c349bd668c91f2484ae21c0f361ddf497143093c #14097 (issue 15.)
Ref: #4314

Closes #16581
.github/workflows/macos.yml
lib/vtls/sectransp.c