diff options
| author | Michael Forney <mforney@mforney.org> | 2018-03-22 23:48:24 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2018-03-23 21:09:56 -0700 |
| commit | e9ae64be1a3c3564e2f58ada29f889d8c9ed7c2b (patch) | |
| tree | 2a90f18b017f58c7806faac67efe06a1e1f83c91 /pkg/python/patch | |
| parent | 3f7f393525babe2c0f3a0bc0530c52a5b1aa0aa2 (diff) | |
python: Fix build with libressl-2.7.0
Diffstat (limited to 'pkg/python/patch')
| -rw-r--r-- | pkg/python/patch/0001-Fix-build-with-libressl-2.7.0.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/pkg/python/patch/0001-Fix-build-with-libressl-2.7.0.patch b/pkg/python/patch/0001-Fix-build-with-libressl-2.7.0.patch new file mode 100644 index 00000000..71c256a1 --- /dev/null +++ b/pkg/python/patch/0001-Fix-build-with-libressl-2.7.0.patch @@ -0,0 +1,25 @@ +From ce8a3ec6f269d0d44ecf83669b5567ca9c934bc4 Mon Sep 17 00:00:00 2001 +From: Michael Forney <mforney@mforney.org> +Date: Thu, 22 Mar 2018 23:42:12 -0700 +Subject: [PATCH] Fix build with libressl-2.7.0 + +--- + Modules/_ssl.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Modules/_ssl.c b/Modules/_ssl.c +index df8c6a7d96..0e18cd887f 100644 +--- a/Modules/_ssl.c ++++ b/Modules/_ssl.c +@@ -99,7 +99,7 @@ struct py_ssl_library_code { + /* Include generated data (error codes) */ + #include "_ssl_data.h" + +-#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) && !defined(LIBRESSL_VERSION_NUMBER) ++#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) && (!defined(LIBRESSL_VERSION_NUMBER) || LIBRESSL_VERSION_NUMBER >= 0x2070000fL) + # define OPENSSL_VERSION_1_1 1 + #endif + +-- +2.16.3 + |
