Browse Source
Merge pull request #10604 from yorkie/fix/python3-build
python3: fix build when Blake2 not enabled in OpenSSL
lilik-openwrt-22.03
Rosen Penev
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
lang/python/python3/patches/002-fix-blake2-detection.patch
|
@ -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 |
|
|
|
|
|
|