[vlc-commits] nacl: vlc_fixups: Define TCP_NODELAY

Julian Scheel git at videolan.org
Tue Mar 28 15:39:45 CEST 2017


vlc | branch: master | Julian Scheel <julian at jusst.de> | Wed Mar 22 09:59:00 2017 +0100| [6afc4594c75a400deb8e4a33d619d82e91df3cd9] | committer: Jean-Baptiste Kempf

nacl: vlc_fixups: Define TCP_NODELAY

netinet/tcp.h is broken in NaCl/Newlib. Define TCP_NODELAY for it.

Signed-off-by: Julian Scheel <julian at jusst.de>
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6afc4594c75a400deb8e4a33d619d82e91df3cd9
---

 include/vlc_fixups.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/include/vlc_fixups.h b/include/vlc_fixups.h
index 9d2c659..8d14808 100644
--- a/include/vlc_fixups.h
+++ b/include/vlc_fixups.h
@@ -339,6 +339,11 @@ int inet_pton(int, const char *, void *);
 const char *inet_ntop(int, const void *, char *, socklen_t);
 #endif
 
+/* NaCl has a broken netinet/tcp.h, so TCP_NODELAY is not set */
+#if defined(__native_client__) && !defined( HAVE_NETINET_TCP_H )
+#  define TCP_NODELAY 1
+#endif
+
 #ifndef HAVE_STRUCT_POLLFD
 enum
 {



More information about the vlc-commits mailing list