termux-packages/packages/socat/xioopts.c.patch

22 lines
931 B
Diff
Raw Normal View History

2015-06-13 01:03:31 +02:00
diff -u -r ../socat-1.7.3.0/xioopts.c ./xioopts.c
--- ../socat-1.7.3.0/xioopts.c 2015-01-24 05:15:22.000000000 -0500
+++ ./xioopts.c 2015-03-06 15:33:38.792143669 -0500
@@ -296,7 +296,7 @@
#if WITH_EXT2 && defined(EXT2_COMPR_FL)
IF_ANY ("compr", &opt_ext2_compr)
#endif
-#if OPENSSL_VERSION_NUMBER >= 0x00908000L
+#if OPENSSL_VERSION_NUMBER >= 0x00908000L && !defined(OPENSSL_NO_COMP)
IF_OPENSSL("compress", &opt_openssl_compress)
#endif
#ifdef TCP_CONN_ABORT_THRESHOLD /* HP_UX */
@@ -1098,7 +1098,7 @@
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 OPENSSL_VERSION_NUMBER >= 0x00908000L && !defined(OPENSSL_NO_COMP)
IF_OPENSSL("openssl-compress", &opt_openssl_compress)
#endif
IF_OPENSSL("openssl-dhparam", &opt_openssl_dhparam)