aboutsummaryrefslogtreecommitdiffstats
path: root/community/cassandra-cpp-driver/libressl_fix.patch
diff options
context:
space:
mode:
authorGennady Feldman <gena01@gmail.com>2018-08-20 15:11:57 -0400
committerAndy Postnikov <apostnikov@gmail.com>2018-08-24 23:19:07 +0300
commit8c7573642d0f2a1c2436a7ff6e41e39824f63892 (patch)
treed8563bfe35187d53a04660ade03428648f9eb0e1 /community/cassandra-cpp-driver/libressl_fix.patch
parent9b64663228e4c706bea52e43db1151e7a32a88d9 (diff)
downloadaports-8c7573642d0f2a1c2436a7ff6e41e39824f63892.tar.bz2
aports-8c7573642d0f2a1c2436a7ff6e41e39824f63892.tar.xz
Fix libressl compilation issue.
* Fixes https://bugs.alpinelinux.org/issues/9204 * Thank you Jie Meng for the bug report and patch/fix.
Diffstat (limited to 'community/cassandra-cpp-driver/libressl_fix.patch')
-rw-r--r--community/cassandra-cpp-driver/libressl_fix.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/community/cassandra-cpp-driver/libressl_fix.patch b/community/cassandra-cpp-driver/libressl_fix.patch
new file mode 100644
index 0000000000..0a2e822728
--- /dev/null
+++ b/community/cassandra-cpp-driver/libressl_fix.patch
@@ -0,0 +1,20 @@
+--- cpp-driver-2.9.0/src/ssl/ssl_openssl_impl.cpp.orig
++++ cpp-driver-2.9.0/src/ssl/ssl_openssl_impl.cpp
+@@ -113,7 +113,7 @@
+ return len;
+ }
+
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
+ static uv_rwlock_t* crypto_locks;
+
+ static void crypto_locking_callback(int mode, int n, const char* file, int line) {
+@@ -597,7 +597,7 @@
+ SSL_load_error_strings();
+ OpenSSL_add_all_algorithms();
+
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
+ // We have to set the lock/id callbacks for use of OpenSSL thread safety.
+ // It's not clear what's thread-safe in OpenSSL. Writing/Reading to
+ // a single "SSL" object is NOT and we don't do that, but we do create multiple