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

Dennis Hamester dennis.hamester at startmail.com
Mon Mar 13 11:11:46 CET 2017


From: Julian Scheel <julian at jusst.de>

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 4020bf823b..9781ca6939 100644
--- a/include/vlc_fixups.h
+++ b/include/vlc_fixups.h
@@ -335,6 +335,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