summaryrefslogtreecommitdiffstats
path: root/libraries/wvstreams/patches/openssl-buildfix.patch
diff options
context:
space:
mode:
author Matteo Bernardini2019-03-30 08:53:10 +0100
committer Matteo Bernardini2019-03-30 08:53:10 +0100
commit37f81333f74286adfe76ea53c2b701b0117e0776 (patch)
tree2a09dae8766cfae8cb4d655a42477e0d6a2a0bf8 /libraries/wvstreams/patches/openssl-buildfix.patch
parent158e3ce0a80a1028c48af5d639f5fde39c94af3c (diff)
downloadslackbuilds-4a3f18b3f12b8b94deed6a54badfca447a48e78d.tar.gz
20190330.1 global branch merge.current-20190330.1
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'libraries/wvstreams/patches/openssl-buildfix.patch')
-rw-r--r--libraries/wvstreams/patches/openssl-buildfix.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/libraries/wvstreams/patches/openssl-buildfix.patch b/libraries/wvstreams/patches/openssl-buildfix.patch
new file mode 100644
index 0000000000..3f76e5f697
--- /dev/null
+++ b/libraries/wvstreams/patches/openssl-buildfix.patch
@@ -0,0 +1,16 @@
+diff -Naur wvstreams-4.6.1.orig/crypto/wvx509.cc wvstreams-4.6.1/crypto/wvx509.cc
+--- wvstreams-4.6.1.orig/crypto/wvx509.cc 2008-10-23 22:23:49.000000000 +0200
++++ wvstreams-4.6.1/crypto/wvx509.cc 2018-05-10 09:25:27.106684000 +0200
+@@ -1157,7 +1157,11 @@
+
+ if (ext)
+ {
+- X509V3_EXT_METHOD *method = X509V3_EXT_get(ext);
++#if OPENSSL_VERSION_NUMBER >= 0x10000000L
++ const X509V3_EXT_METHOD *method = X509V3_EXT_get(ext);
++#else
++ X509V3_EXT_METHOD *method = (X509V3_EXT_METHOD *)X509V3_EXT_get(ext);
++#endif
+ if (!method)
+ {
+ WvDynBuf buf;