Browse Source

python3: fix build when Blake2 not enabled in OpenSSL

Refs:

- 7c20888e71
- https://bugs.python.org/issue38684

Signed-off-by: Yorkie Liu <yorkiefixer@gmail.com>
lilik-openwrt-22.03
Yorkie Liu 5 years ago
committed by yorkie
parent
commit
85eee2d7f8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lang/python/python3/patches/002-fix-blake2-detection.patch

+ 1
- 1
lang/python/python3/patches/002-fix-blake2-detection.patch View File

@ -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

Loading…
Cancel
Save