From 8fb3fd3dac586ccb38a3a30aa4d0e1656aea2dc3 Mon Sep 17 00:00:00 2001 From: Eneas U de Queiroz Date: Fri, 15 Jul 2022 15:00:20 -0300 Subject: [PATCH] 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 --- .../patches/100-cmake-fix-wolfssl-detection.patch | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 libs/libuwsc/patches/100-cmake-fix-wolfssl-detection.patch 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