From 85ae255f73b9b81ae3d17e6420dbb95a29dbe8b7 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 19 Mar 2012 05:53:03 +0000 Subject: fix for non-Linux, non-TCP_NOPUSH platforms 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 --- ext/kgio/read_write.c | 3 --- 1 file changed, 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 -# 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 *)); -- cgit v1.2.3-24-ge0c7