mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
Don't define BIO_get_init() for LibreSSL 3.5+
BIO_get_init() is available in LibreSSL 3.5 and later. The BIO type will become opaque, so the existing macro will break the build.
This commit is contained in:
parent
f64f60a223
commit
883630f76c
@ -40,7 +40,8 @@ static inline BIO_METHOD *BIO_meth_new(int type, const char *name)
|
||||
#endif /* (OPENSSL_VERSION_NUMBER < 0x10100000L) || \
|
||||
(defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20700000L) */
|
||||
|
||||
#if defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER >= 0x20700000L
|
||||
#if defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER >= 0x20700000L && \
|
||||
LIBRESSL_VERSION_NUMBER < 0x30500000L
|
||||
#define BIO_get_init(b) (b)->init
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user