curl: fix compilation with wolfSSL

options.h header is needed after bump of libwolfssl to version 5.5.1,
otherwise libcurl autodetection for libwolfssl availability fails and
libcurl is then compiled without https support.

Fixes: #19547
Signed-off-by: Rosen Penev <rosenp@gmail.com>
(cherry picked from commit 317575755a)
(cherry picked from commit ef545e0317)
Signed-off-by: Petr Štetiar <ynezz@true.cz> [commit verbosity]
This commit is contained in:
Rosen Penev 2022-07-19 19:24:19 -07:00 committed by Petr Štetiar
parent 5c73747ff6
commit f4cc6adcfe

View file

@ -0,0 +1,10 @@
--- a/m4/curl-wolfssl.m4
+++ b/m4/curl-wolfssl.m4
@@ -93,6 +93,7 @@ if test "x$OPT_WOLFSSL" != xno; then
They are set up properly later if it is detected. */
#undef SIZEOF_LONG
#undef SIZEOF_LONG_LONG
+#include <wolfssl/options.h>
#include <wolfssl/ssl.h>
]],[[
return wolfSSL_Init();