summaryrefslogtreecommitdiff
path: root/package/socat/patches/patch-xioopts_c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2015-12-29 23:42:54 +0100
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2015-12-29 23:43:04 +0100
commitac312feacd492d85718493ced849fe6318e2c1e2 (patch)
tree1f1a8f76e1548e990c8653ec431dd43a72106df6 /package/socat/patches/patch-xioopts_c
parent102c11bb821d18d30b41bbbf73e713d09fb1ee54 (diff)
socat: fix compile with libressl
Diffstat (limited to 'package/socat/patches/patch-xioopts_c')
-rw-r--r--package/socat/patches/patch-xioopts_c20
1 files changed, 20 insertions, 0 deletions
diff --git a/package/socat/patches/patch-xioopts_c b/package/socat/patches/patch-xioopts_c
new file mode 100644
index 000000000..d85ae4588
--- /dev/null
+++ b/package/socat/patches/patch-xioopts_c
@@ -0,0 +1,20 @@
+--- socat-1.7.3.0.orig/xioopts.c 2015-01-24 11:15:22.000000000 +0100
++++ socat-1.7.3.0/xioopts.c 2015-12-29 23:28:16.000000000 +0100
+@@ -296,7 +296,7 @@ const struct optname optionnames[] = {
+ #if WITH_EXT2 && defined(EXT2_COMPR_FL)
+ IF_ANY ("compr", &opt_ext2_compr)
+ #endif
+-#if OPENSSL_VERSION_NUMBER >= 0x00908000L
++#if !defined(OPENSSL_NO_COMP)
+ IF_OPENSSL("compress", &opt_openssl_compress)
+ #endif
+ #ifdef TCP_CONN_ABORT_THRESHOLD /* HP_UX */
+@@ -1098,7 +1098,7 @@ const struct optname optionnames[] = {
+ IF_OPENSSL("openssl-certificate", &opt_openssl_certificate)
+ IF_OPENSSL("openssl-cipherlist", &opt_openssl_cipherlist)
+ IF_OPENSSL("openssl-commonname", &opt_openssl_commonname)
+-#if OPENSSL_VERSION_NUMBER >= 0x00908000L
++#if !defined(OPENSSL_NO_COMP)
+ IF_OPENSSL("openssl-compress", &opt_openssl_compress)
+ #endif
+ IF_OPENSSL("openssl-dhparam", &opt_openssl_dhparam)