From 9f5dcbffd451d2249b9fc99f177fc8af8a507268 Mon Sep 17 00:00:00 2001 From: Ivan Pozdeev Date: Wed, 26 Oct 2022 21:56:28 +0300 Subject: [PATCH] Fix compilation error when building OpenSSL 1.1.1q in MacOS 11+ "error: implicitly declaring library function 'memcmp'" Downstream backport of https://github.com/openssl/openssl/issues/18720 --- .../openssl_1.1.1q_fix_c_include.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 plugins/python-build/share/python-build/patches/3.11.0/openssl-1.1.1q/openssl_1.1.1q_fix_c_include.patch diff --git a/plugins/python-build/share/python-build/patches/3.11.0/openssl-1.1.1q/openssl_1.1.1q_fix_c_include.patch b/plugins/python-build/share/python-build/patches/3.11.0/openssl-1.1.1q/openssl_1.1.1q_fix_c_include.patch new file mode 100644 index 00000000..e7088e5e --- /dev/null +++ b/plugins/python-build/share/python-build/patches/3.11.0/openssl-1.1.1q/openssl_1.1.1q_fix_c_include.patch @@ -0,0 +1,12 @@ +diff --git a/test/v3ext.c b/test/v3ext.c +index 7a240cd706..6cec6f1a9b 100644 +--- a/test/v3ext.c ++++ b/test/v3ext.c +@@ -15,6 +15,7 @@ + #include + #include "internal/nelem.h" + ++#include + #include "testutil.h" + + static const char *infile;