Commit 90ef80cc authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Contribs: GnuTLS: do not use connectx for macOS

It is only available since 10.11

(cherry picked from commit 0754c30c)
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 1660a712
--- 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
......@@ -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")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment