From 5ff7f773106176d60d6f3386017b58b3b01edb41 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Tue, 21 Apr 2026 09:46:45 +0200 Subject: [PATCH] wolfssl: fix `-Wmissing-prototypes` Seen with unity, H3, wolfssl with `HAVE_EX_DATA`. Fixing: ``` lib/vtls/wolfssl.c:412:10: error: no previous prototype for function 'Curl_wssl_cache_session' [-Wmissing-prototypes] 412 | CURLcode Curl_wssl_cache_session(struct Curl_cfilter *cf, | ^ lib/vtls/wolfssl.c:412:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 412 | CURLcode Curl_wssl_cache_session(struct Curl_cfilter *cf, | ^ | static 1 error generated. ``` Follow-up to cc5c1553fbdb8c1391d0cf81134583ee32da64d4 #19852 Closes #21392 --- lib/vtls/wolfssl.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/vtls/wolfssl.h b/lib/vtls/wolfssl.h index 778002840d..2490bf3e9c 100644 --- a/lib/vtls/wolfssl.h +++ b/lib/vtls/wolfssl.h @@ -29,6 +29,8 @@ #include "urldata.h" +#include + struct alpn_spec; struct ssl_peer; struct Curl_ssl_session; -- 2.47.3