mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
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>
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
-#ifdef NID_blake2b512
|
-#ifdef NID_blake2b512
|
||||||
+#ifndef OPENSSL_NO_BLAKE2
|
+#if defined(NID_blake2b512) && !defined(OPENSSL_NO_BLAKE2)
|
||||||
#define PY_OPENSSL_HAS_BLAKE2 1
|
#define PY_OPENSSL_HAS_BLAKE2 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user