[vlc-commits] Contribs: GnuTLS: do not use connectx for macOS

Jean-Baptiste Kempf git at videolan.org
Tue Dec 26 18:47:29 CET 2017


vlc/vlc-3.0 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Dec 26 18:05:49 2017 +0100| [90ef80cc8e9e793113bebc434ab0ac0d8399de46] | committer: Jean-Baptiste Kempf

Contribs: GnuTLS: do not use connectx for macOS

It is only available since 10.11

(cherry picked from commit 0754c30c49299b1b1c1fa1cf4882f6014d5289b7)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=90ef80cc8e9e793113bebc434ab0ac0d8399de46
---

 contrib/src/gnutls/gnutls-disable-connectx-macos.patch | 12 ++++++++++++
 contrib/src/gnutls/rules.mak                           |  1 +
 2 files changed, 13 insertions(+)

diff --git a/contrib/src/gnutls/gnutls-disable-connectx-macos.patch b/contrib/src/gnutls/gnutls-disable-connectx-macos.patch
new file mode 100644
index 0000000000..47ca4226be
--- /dev/null
+++ b/contrib/src/gnutls/gnutls-disable-connectx-macos.patch
@@ -0,0 +1,12 @@
+--- gnutls/lib/system/fastopen.c	2017-12-26 18:00:54.041282870 +0100
++++ gnutls/lib/system/fastopen.c.new	2017-12-26 18:00:09.209281540 +0100
+@@ -36,7 +36,8 @@
+ #endif
+ 
+ /* TCP Fast Open on OSX behaves differently from Linux, so define these helpers */
+-#if defined __APPLE__ && defined __MACH__ && defined CONNECT_DATA_IDEMPOTENT && defined CONNECT_RESUME_ON_READ_WRITE
++#if 0
++// defined __APPLE__ && defined __MACH__ && defined CONNECT_DATA_IDEMPOTENT && defined CONNECT_RESUME_ON_READ_WRITE
+ # define TCP_FASTOPEN_OSX
+ #elif defined TCP_FASTOPEN && defined MSG_FASTOPEN
+ # define TCP_FASTOPEN_LINUX
diff --git a/contrib/src/gnutls/rules.mak b/contrib/src/gnutls/rules.mak
index 26b1d1ba03..e537d9d2f2 100644
--- a/contrib/src/gnutls/rules.mak
+++ b/contrib/src/gnutls/rules.mak
@@ -36,6 +36,7 @@ ifdef HAVE_MACOSX
 	$(APPLY) $(SRC)/gnutls/mac-keychain-lookup.patch
 	$(APPLY) $(SRC)/gnutls/gnutls-pkgconfig-osx.patch
 	$(APPLY) $(SRC)/gnutls/gnutls-disable-getentropy-osx.patch
+	$(APPLY) $(SRC)/gnutls/gnutls-disable-connectx-macos.patch
 endif
 	$(APPLY) $(SRC)/gnutls/gnutls-libidn.patch
 	$(call pkg_static,"lib/gnutls.pc.in")



More information about the vlc-commits mailing list