Merge pull request #10604 from yorkie/fix/python3-build

python3: fix build when Blake2 not enabled in OpenSSL
This commit is contained in:
Rosen Penev 2019-11-21 05:21:00 -08:00 committed by GitHub
commit a634589ef6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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