[vlc-devel] [PATCH v4 12/18] nacl: vlc_fixups: Define TCP_NODELAY

Julian Scheel julian at jusst.de
Wed Mar 22 09:59:00 CET 2017


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

Signed-off-by: Julian Scheel <julian at jusst.de>
---
 include/vlc_fixups.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/include/vlc_fixups.h b/include/vlc_fixups.h
index 7b2ba90d92..da1d2135b1 100644
--- a/include/vlc_fixups.h
+++ b/include/vlc_fixups.h
@@ -348,6 +348,13 @@ 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 */
+#ifndef HAVE_NETINET_IN_H
+# ifdef __native_client__
+#  define TCP_NODELAY 1
+#endif
+#endif
+
 #ifndef HAVE_STRUCT_POLLFD
 enum
 {
-- 
2.12.0



More information about the vlc-devel mailing list