summaryrefslogtreecommitdiff
path: root/lang/python
diff options
context:
space:
mode:
authorYorkie Liu <yorkiefixer@gmail.com>2019-11-21 18:16:22 +0800
committeryorkie <yorkiefixer@gmail.com>2019-11-21 18:18:14 +0800
commit85eee2d7f85421fd9156fb988ac865679e4e7851 (patch)
treeea813542c38b3dcadacc0b9bb07022f00d62110c /lang/python
parent24667753a20250e3df33ffe7f30b063a02ff01ee (diff)
python3: fix build when Blake2 not enabled in OpenSSL
Refs: - https://github.com/python/cpython/commit/7c20888e71304ecbf4bd3d595f364b7c691d30a0 - https://bugs.python.org/issue38684 Signed-off-by: Yorkie Liu <yorkiefixer@gmail.com>
Diffstat (limited to 'lang/python')
-rw-r--r--lang/python/python3/patches/002-fix-blake2-detection.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/lang/python/python3/patches/002-fix-blake2-detection.patch b/lang/python/python3/patches/002-fix-blake2-detection.patch
index 72b6ea219..88916af07 100644
--- a/lang/python/python3/patches/002-fix-blake2-detection.patch
+++ b/lang/python/python3/patches/002-fix-blake2-detection.patch
@@ -5,7 +5,7 @@
#endif
-#ifdef NID_blake2b512
-+#ifndef OPENSSL_NO_BLAKE2
++#if defined(NID_blake2b512) && !defined(OPENSSL_NO_BLAKE2)
#define PY_OPENSSL_HAS_BLAKE2 1
#endif