aports/community/erlang/libressl-2.7.patch
2018-04-06 05:19:29 +00:00

16 lines
380 B
Diff

diff --git a/lib/crypto/c_src/crypto.c b/lib/crypto/c_src/crypto.c
index 9a3ea07..d972f79 100644
--- a/lib/crypto/c_src/crypto.c
+++ b/lib/crypto/c_src/crypto.c
@@ -103,7 +103,9 @@
# endif
/* LibreSSL wants the 1.0.1 API */
-# define NEED_EVP_COMPATIBILITY_FUNCTIONS
+# if LIBRESSL_VERSION_NUMBER < 0x2070000fL
+# define NEED_EVP_COMPATIBILITY_FUNCTIONS
+# endif
#endif