diff options
author | Jan Beich <jbeich@FreeBSD.org> | 2017-01-28 16:42:13 +0000 |
---|---|---|
committer | Azat Khuzhin <a3at.mail@gmail.com> | 2017-01-30 00:25:26 +0300 |
commit | d057c45e8f48aa90d8b340cac4c8ae4cc8b5d0ac (patch) | |
tree | 6ae3416cd9daa13687e199ed6dcb48d7cb3727ce /openssl-compat.h | |
parent | 9d5a4bdc5cfbf2385efc7c58103161b3512c4500 (diff) | |
download | libevent-d057c45e8f48aa90d8b340cac4c8ae4cc8b5d0ac.tar.gz |
Unbreak build with LibreSSL after openssl 1.1 support added
Fixes: 3e9e0a0d46e4 ("Make it build using OpenSSL 1.1.0")
Fixes: #445
Diffstat (limited to 'openssl-compat.h')
-rw-r--r-- | openssl-compat.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openssl-compat.h b/openssl-compat.h index 69afc716..0f2dcb75 100644 --- a/openssl-compat.h +++ b/openssl-compat.h @@ -1,7 +1,7 @@ #ifndef OPENSSL_COMPAT_H #define OPENSSL_COMPAT_H -#if OPENSSL_VERSION_NUMBER < 0x10100000L +#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER) static inline BIO_METHOD *BIO_meth_new(int type, const char *name) { @@ -30,6 +30,6 @@ static inline BIO_METHOD *BIO_meth_new(int type, const char *name) #define TLS_method SSLv23_method -#endif /* OPENSSL_VERSION_NUMBER < 0x10100000L */ +#endif /* (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER) */ #endif /* OPENSSL_COMPAT_H */ |