curl: fix compilation with wolfSSL
authorRosen Penev <rosenp@gmail.com>
Wed, 20 Jul 2022 02:24:19 +0000 (19:24 -0700)
committerRosen Penev <rosenp@gmail.com>
Wed, 20 Jul 2022 03:03:26 +0000 (20:03 -0700)
options.h header is needed now.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
net/curl/patches/100-wolfssl.patch [new file with mode: 0644]

diff --git a/net/curl/patches/100-wolfssl.patch b/net/curl/patches/100-wolfssl.patch
new file mode 100644 (file)
index 0000000..d395a07
--- /dev/null
@@ -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();