about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2012-03-19 05:53:03 +0000
committerEric Wong <normalperson@yhbt.net>2012-03-19 06:03:40 +0000
commit85ae255f73b9b81ae3d17e6420dbb95a29dbe8b7 (patch)
tree680286cb8437b50825ee331833a5322c77868dd6
parent5ea4cdd1275c0f862bf9dcd1d344dc57d70e5392 (diff)
downloadkgio-85ae255f73b9b81ae3d17e6420dbb95a29dbe8b7.tar.gz
We don't need to care for TCP_NOPUSH in read_write.c, it's
entirely in autopush.c and no-op on platforms without
TCP_CORK/TCP_NOPUSH.  TCP_CORK/TCP_NOPUSH are non-POSIX, so
it's entirely possible some Free systems will lack them.

Reported-by: Edho Arief <edho@myconan.net>
-rw-r--r--ext/kgio/read_write.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/ext/kgio/read_write.c b/ext/kgio/read_write.c
index 9c2440e..51d2d16 100644
--- a/ext/kgio/read_write.c
+++ b/ext/kgio/read_write.c
@@ -20,11 +20,8 @@ static inline void kgio_autopush_write(VALUE io) { }
 
 #else
 static const int peek_flags = MSG_PEEK;
-#  include <netinet/tcp.h>
-#  if defined(TCP_NOPUSH)
 static inline void kgio_autopush_read(VALUE io) { kgio_autopush_recv(io); }
 static inline void kgio_autopush_write(VALUE io) { kgio_autopush_send(io); }
-#  endif
 #endif
 
 NORETURN(static void raise_empty_bt(VALUE, const char *));