diff options
| author | Gennady Feldman <gena01@gmail.com> | 2018-08-20 15:11:57 -0400 |
|---|---|---|
| committer | Andy Postnikov <apostnikov@gmail.com> | 2018-08-24 23:19:07 +0300 |
| commit | 8c7573642d0f2a1c2436a7ff6e41e39824f63892 (patch) | |
| tree | d8563bfe35187d53a04660ade03428648f9eb0e1 /community/cassandra-cpp-driver/libressl_fix.patch | |
| parent | 9b64663228e4c706bea52e43db1151e7a32a88d9 (diff) | |
| download | aports-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.patch | 20 |
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 |
