devel/libevent2: neuter a compat macro for BIO_get_init()
https://github.com/libevent/libevent/pull/1227
This commit is contained in:
parent
692fcbb0dd
commit
0366ba542e
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.18 2020/03/31 19:06:06 kn Exp $
|
||||
# $OpenBSD: Makefile,v 1.19 2021/11/21 20:49:10 tb Exp $
|
||||
|
||||
COMMENT= event notification library
|
||||
|
||||
@ -7,6 +7,7 @@ DISTNAME= libevent-$V-stable
|
||||
PKGNAME= libevent-$V
|
||||
CATEGORIES= devel
|
||||
HOMEPAGE= https://libevent.org/
|
||||
REVISION= 0
|
||||
|
||||
SHARED_LIBS+= event_core 2.0 # 7.0
|
||||
SHARED_LIBS+= event_extra 1.0 # 7.0
|
||||
|
18
devel/libevent2/patches/patch-openssl-compat_h
Normal file
18
devel/libevent2/patches/patch-openssl-compat_h
Normal file
@ -0,0 +1,18 @@
|
||||
$OpenBSD: patch-openssl-compat_h,v 1.1 2021/11/21 20:49:10 tb Exp $
|
||||
|
||||
We have BIO_get_init() now.
|
||||
https://github.com/libevent/libevent/pull/1227
|
||||
|
||||
Index: openssl-compat.h
|
||||
--- openssl-compat.h.orig
|
||||
+++ openssl-compat.h
|
||||
@@ -37,7 +37,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
|
||||
|
Loading…
Reference in New Issue
Block a user