etc: Enable a tty for a serial port by default.
[dragora.git] / patches / python / patch-Modules__hashopenssl_c
blob98515b3c99dd18b4437ad934c30be436c516885c
1 Index: Modules/_hashopenssl.c
2 --- Modules/_hashopenssl.c.orig
3 +++ Modules/_hashopenssl.c
4 @@ -43,7 +43,8 @@
5  #  error "OPENSSL_THREADS is not defined, Python requires thread-safe OpenSSL"
6  #endif
7  
8 -#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER)
9 +#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || \
10 +    (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL)
11  /* OpenSSL < 1.1.0 */
12  #define EVP_MD_CTX_new EVP_MD_CTX_create
13  #define EVP_MD_CTX_free EVP_MD_CTX_destroy