summaryrefslogtreecommitdiff
path: root/databases/mysql80-server/files/patch-extra_libevent_openssl-compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'databases/mysql80-server/files/patch-extra_libevent_openssl-compat.h')
-rw-r--r--databases/mysql80-server/files/patch-extra_libevent_openssl-compat.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/databases/mysql80-server/files/patch-extra_libevent_openssl-compat.h b/databases/mysql80-server/files/patch-extra_libevent_openssl-compat.h
new file mode 100644
index 000000000000..22616ed7ca9f
--- /dev/null
+++ b/databases/mysql80-server/files/patch-extra_libevent_openssl-compat.h
@@ -0,0 +1,19 @@
+--- extra/libevent/openssl-compat.h.orig 2019-09-20 08:30:51 UTC
++++ extra/libevent/openssl-compat.h
+@@ -24,12 +24,15 @@ static inline BIO_METHOD *BIO_meth_new(int type, const
+ #define BIO_set_init(b, val) (b)->init = (val)
+ #define BIO_set_data(b, val) (b)->ptr = (val)
+ #define BIO_set_shutdown(b, val) (b)->shutdown = (val)
+-#define BIO_get_init(b) (b)->init
+ #define BIO_get_data(b) (b)->ptr
+ #define BIO_get_shutdown(b) (b)->shutdown
+
+ #define TLS_method SSLv23_method
+
+ #endif /* OPENSSL_VERSION_NUMBER < 0x10100000L */
++
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
++#define BIO_get_init(b) (b)->init
++#endif
+
+ #endif /* OPENSSL_COMPAT_H */