summaryrefslogtreecommitdiffstats
path: root/Mac/BuildScript/openssl1.1.1q-pr-18719.patch
diff options
context:
space:
mode:
authorNed Deily <nad@python.org>2022-09-05 18:37:24 (GMT)
committerGitHub <noreply@github.com>2022-09-05 18:37:24 (GMT)
commit991b3712a11a705efc6e45d22643bb2ccfb3eca5 (patch)
tree557709c856672470383522b1bd8a8439fada76be /Mac/BuildScript/openssl1.1.1q-pr-18719.patch
parent200c9a8da0e2b892c476807e986009c01327e781 (diff)
downloadcpython-991b3712a11a705efc6e45d22643bb2ccfb3eca5.zip
cpython-991b3712a11a705efc6e45d22643bb2ccfb3eca5.tar.gz
cpython-991b3712a11a705efc6e45d22643bb2ccfb3eca5.tar.bz2
Add upstream openssl 1.1.1q patch for trivial build error on macOS (GH-96594)
Diffstat (limited to 'Mac/BuildScript/openssl1.1.1q-pr-18719.patch')
-rw-r--r--Mac/BuildScript/openssl1.1.1q-pr-18719.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/Mac/BuildScript/openssl1.1.1q-pr-18719.patch b/Mac/BuildScript/openssl1.1.1q-pr-18719.patch
new file mode 100644
index 0000000..6b4b188
--- /dev/null
+++ b/Mac/BuildScript/openssl1.1.1q-pr-18719.patch
@@ -0,0 +1,17 @@
+https://github.com/openssl/openssl/commit/60f011f584d80447e86cae1d1bd3ae24bc13235b
+This fixes a regression in 1.1.1q:
+
+test/v3ext.c:201:24: error: implicitly declaring library function 'memcmp' with type 'int (const void *, const void *, unsigned long)' [-Werror,-Wimplicit-function-declaration]
+ if (!TEST_true(memcmp(ip1->data, ip2->data, ip1->length) <= 0))
+
+diff -Naur openssl-1.1.1q/test/v3ext.c openssl-1.1.1q-patched/test/v3ext.c
+--- openssl-1.1.1q/test/v3ext.c 2022-07-05 09:08:33.000000000 +0000
++++ openssl-1.1.1q-patched/test/v3ext.c 2022-09-05 16:54:45.740859256 +0000
+@@ -8,6 +8,7 @@
+ */
+
+ #include <stdio.h>
++#include <string.h>
+ #include <openssl/x509.h>
+ #include <openssl/x509v3.h>
+ #include <openssl/pem.h>