From cfd974c340e704a167e3940d4b79d44ae1ac90eb Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Fri, 13 May 2022 22:21:08 +0200 Subject: [PATCH] package/janus-gateway: fix build with libressl >= 3.5.0 Fix the following build failure with libressl raised since bump to version 3.5.2 in commit 8b216927db080b38fdbf1f8b025b6f90a89d4bc2: dtls-bio.c:40:1: error: variable 'janus_dtls_bio_agent_methods' has initializer but incomplete type 40 | static BIO_METHOD janus_dtls_bio_agent_methods = { | ^~~~~~ Fixes: - http://autobuild.buildroot.org/results/92fe19446b40551c0139254d9efc6b3904fa287a Signed-off-by: Fabrice Fontaine Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- .../0004-Fix-build-with-libressl-3.5.0.patch | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 package/janus-gateway/0004-Fix-build-with-libressl-3.5.0.patch diff --git a/package/janus-gateway/0004-Fix-build-with-libressl-3.5.0.patch b/package/janus-gateway/0004-Fix-build-with-libressl-3.5.0.patch new file mode 100644 index 0000000000..6d75318a45 --- /dev/null +++ b/package/janus-gateway/0004-Fix-build-with-libressl-3.5.0.patch @@ -0,0 +1,25 @@ +From 8e450a097f5f0c7e9c034e954fbc709797521f1c Mon Sep 17 00:00:00 2001 +From: Lorenzo Miniero +Date: Fri, 13 May 2022 18:42:38 +0200 +Subject: [PATCH] Fix build with libressl >= 3.5.0 (see #2980) + +[Retrieved from: +https://github.com/meetecho/janus-gateway/commit/8e450a097f5f0c7e9c034e954fbc709797521f1c] +Signed-off-by: Fabrice Fontaine +--- + dtls-bio.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/dtls-bio.h b/dtls-bio.h +index 92f06d7c0a..fbfd4c37bf 100644 +--- a/dtls-bio.h ++++ b/dtls-bio.h +@@ -35,7 +35,7 @@ void janus_dtls_bio_agent_set_mtu(int start_mtu); + int janus_dtls_bio_agent_get_mtu(void); + + #if defined(LIBRESSL_VERSION_NUMBER) +-#define JANUS_USE_OPENSSL_PRE_1_1_API (1) ++#define JANUS_USE_OPENSSL_PRE_1_1_API (LIBRESSL_VERSION_NUMBER < 0x30500000L) + #else + #define JANUS_USE_OPENSSL_PRE_1_1_API (OPENSSL_VERSION_NUMBER < 0x10100000L) + #endif