openbsd-ports/devel/libevent2/patches/patch-openssl-compat_h
tb 96fda429a7 devel/libevent2: simple update to 2.1.12. ChangeLog doesn't list anything
concerning. The "regress" test is completely busted, but that isn't new.
Minor bump for libevent_core due to a symbol addition.

https://raw.githubusercontent.com/libevent/libevent/release-2.1.12-stable/ChangeLog
2022-03-22 17:08:26 +00:00

17 lines
608 B
Plaintext

We have BIO_get_init() now.
https://github.com/libevent/libevent/pull/1227
Index: openssl-compat.h
--- openssl-compat.h.orig
+++ openssl-compat.h
@@ -40,7 +40,8 @@ static inline BIO_METHOD *BIO_meth_new(int type, const
#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