fix trc for !http + http3

lib/curl_trc.c:486:6: error: use of undeclared identifier 'Curl_cft_http3'
  486 |   { &Curl_cft_http3,          TRC_CT_PROTOCOL },
      |      ^
lib/curl_trc.c:497:18: error: invalid application of 'sizeof' to an incomplete type 'struct trc_cft_def[]'
  497 |   for(i = 0; i < CURL_ARRAYSIZE(trc_cfts); ++i) {
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~
lib/curl_setup.h:957:34: note: expanded from macro 'CURL_ARRAYSIZE'
  957 | #define CURL_ARRAYSIZE(A) (sizeof(A)/sizeof((A)[0]))
      |                                  ^~~
In file included from _buildroulette/bld/lib/CMakeFiles/libcurl_shared.dir/Unity/unity_1_c.c:13:
lib/curl_trc.c:515:18: error: invalid application of 'sizeof' to an incomplete type 'struct trc_cft_def[]'
  515 |   for(i = 0; i < CURL_ARRAYSIZE(trc_cfts); ++i) {
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~
lib/curl_setup.h:957:34: note: expanded from macro 'CURL_ARRAYSIZE'
  957 | #define CURL_ARRAYSIZE(A) (sizeof(A)/sizeof((A)[0]))
      |                                  ^~~
3 errors generated.

options='-DCURL_DISABLE_DIGEST_AUTH=ON -DCURL_DISABLE_DOH=ON -DCURL_DISABLE_HTTP=ON -DCURL_DISABLE_IMAP=ON -DCURL_DISABLE_KERBEROS_AUTH=ON -DCURL_DISABLE_PARSEDATE=ON -DCURL_DISABLE_SHA512_256=ON -DCURL_DISABLE_SHUFFLE_DNS=ON   -DENABLE_CURLDEBUG=OFF -DCURL_USE_OPENSSL=ON -DUSE_OPENSSL_QUIC=ON'
This commit is contained in:
Viktor Szakats 2025-07-18 20:57:33 +02:00
parent f2321419e3
commit bc7718a5d0
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -482,7 +482,7 @@ static struct trc_cft_def trc_cfts[] = {
{ &Curl_cft_haproxy, TRC_CT_PROXY },
{ &Curl_cft_socks_proxy, TRC_CT_PROXY },
#endif /* !CURL_DISABLE_PROXY */
#ifdef USE_HTTP3
#if !defined(CURL_DISABLE_HTTP) && defined(USE_HTTP3)
{ &Curl_cft_http3, TRC_CT_PROTOCOL },
#endif
#if !defined(CURL_DISABLE_HTTP)