Commit 6afc4594 authored by Julian Scheel's avatar Julian Scheel Committed by 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's avatarJulian Scheel <julian@jusst.de>
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 583094f0
......@@ -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
{
......
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