diff options
| author | Yorkie Liu <yorkiefixer@gmail.com> | 2019-11-21 18:16:22 +0800 |
|---|---|---|
| committer | yorkie <yorkiefixer@gmail.com> | 2019-11-21 18:18:14 +0800 |
| commit | 85eee2d7f85421fd9156fb988ac865679e4e7851 (patch) | |
| tree | ea813542c38b3dcadacc0b9bb07022f00d62110c /lang/python | |
| parent | 24667753a20250e3df33ffe7f30b063a02ff01ee (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.patch | 2 |
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 |
