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