From: Eneas U de Queiroz Date: Fri, 15 Jul 2022 18:00:20 +0000 (-0300) Subject: libuwsc: fix compiltation with wolfSSL X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=8fb3fd3dac586ccb38a3a30aa4d0e1656aea2dc3;p=feed%2Fpackages.git libuwsc: fix compiltation with wolfSSL wolfssl/options.h needs to be included before the other wolfssl headers to enable OpenSSL API required to build the package. Signed-off-by: Eneas U de Queiroz --- diff --git a/libs/libuwsc/patches/100-cmake-fix-wolfssl-detection.patch b/libs/libuwsc/patches/100-cmake-fix-wolfssl-detection.patch new file mode 100644 index 0000000000..7f63f3381c --- /dev/null +++ b/libs/libuwsc/patches/100-cmake-fix-wolfssl-detection.patch @@ -0,0 +1,10 @@ +--- a/src/ssl.c ++++ b/src/ssl.c +@@ -54,6 +54,7 @@ struct uwsc_ssl_ctx { + #include + #elif UWSC_HAVE_WOLFSSL + #define WC_NO_HARDEN ++#include + #include + #include + #endif