diff options
author | Eric Wong <normalperson@yhbt.net> | 2012-03-19 05:53:03 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2012-03-19 06:03:40 +0000 |
commit | 85ae255f73b9b81ae3d17e6420dbb95a29dbe8b7 (patch) | |
tree | 680286cb8437b50825ee331833a5322c77868dd6 | |
parent | 5ea4cdd1275c0f862bf9dcd1d344dc57d70e5392 (diff) | |
download | kgio-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.c | 3 |
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 *)); |