aboutsummaryrefslogtreecommitdiffstats
path: root/main/libevent/libressl-2.7.patch
blob: ce0c650b027f4621208b4b7511d76e77462f5a36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/openssl-compat.h b/openssl-compat.h
index 69afc71..a6e81ae 100644
--- a/openssl-compat.h
+++ b/openssl-compat.h
@@ -31,5 +31,8 @@ static inline BIO_METHOD *BIO_meth_new(int type, const char *name)
 #define TLS_method SSLv23_method
 
 #endif /* OPENSSL_VERSION_NUMBER < 0x10100000L */
+#if defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER >= 0x20700000L
+#define BIO_get_init(b) (b)->init
+#endif
 
 #endif /* OPENSSL_COMPAT_H */