aboutsummaryrefslogtreecommitdiff
path: root/repos/extra/libevent/libressl.diff
diff options
context:
space:
mode:
authoremmett1 <emmett1.2miligrams@protonmail.com>2025-02-25 00:05:51 +0800
committeremmett1 <emmett1.2miligrams@protonmail.com>2025-02-25 00:05:51 +0800
commit4e9aeab49cff415b9c24af7dc49dbd30159910e1 (patch)
treeaa92ef9cf9f69cad8d766672059c919abf9e7793 /repos/extra/libevent/libressl.diff
parent8f44ee1d4d34d94e82a7e578ee4b8465cb8dadc3 (diff)
downloadalicelinux-4e9aeab49cff415b9c24af7dc49dbd30159910e1.tar.gz
alicelinux-4e9aeab49cff415b9c24af7dc49dbd30159910e1.zip
libevent: added libressl patch
Diffstat (limited to 'repos/extra/libevent/libressl.diff')
-rw-r--r--repos/extra/libevent/libressl.diff14
1 files changed, 14 insertions, 0 deletions
diff --git a/repos/extra/libevent/libressl.diff b/repos/extra/libevent/libressl.diff
new file mode 100644
index 00000000..cafe015b
--- /dev/null
+++ b/repos/extra/libevent/libressl.diff
@@ -0,0 +1,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
+