aboutsummaryrefslogtreecommitdiff
path: root/repos/extra/libevent/libressl.diff
blob: cafe015bf9157d6a50a0144ab8e309e24d383957 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/openssl-compat.h b/openssl-compat.h
index a23e342..59c26b8 100644
--- a/openssl-compat.h
+++ b/openssl-compat.h
@@ -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