From ffdc65a31d2db7ee59e70935e3551376de6d258f Mon Sep 17 00:00:00 2001 From: Bernard Spil Date: Sun, 1 Apr 2018 22:14:43 +0200 Subject: [PATCH] Fix build with LibreSSL 2.7 LibreSSL 2.7 implements the OpenSSL 1.1 API Signed-off-by: Bernard Spil --- src/libssl_compat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libssl_compat.h b/src/libssl_compat.h index 0e03bfd7..3101844b 100644 --- a/src/libssl_compat.h +++ b/src/libssl_compat.h @@ -37,7 +37,7 @@ #include -#if defined(LIBRESSL_VERSION_NUMBER) +#if (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER > 0x20700000fL) #define LIBRESSL_IN_USE 1 #else // !defined(LIBRESSL_VERSION_NUMBER) #define LIBRESSL_IN_USE 0