about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2011-05-05 11:18:46 -0700
committerEric Wong <normalperson@yhbt.net>2011-05-05 12:34:47 -0700
commit9900efecb60635ad97b5c00c76eb60252839b1c1 (patch)
treeebf05bc2f324b4c7cfb41818429b03686b912c13
parent577cf3056d9f3088145aea51bbc09a0c90a7695e (diff)
downloadkgio-9900efecb60635ad97b5c00c76eb60252839b1c1.tar.gz
Fix kgio_peek by adding an empty kgio_autopush_recv
if !KGIO_NOPUSH.

ref: http://mid.gmane.org/20110505181846.GB9693@jeremyevans.local
Acked-by: Eric Wong <normalperson@yhbt.net>
-rw-r--r--ext/kgio/autopush.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/kgio/autopush.c b/ext/kgio/autopush.c
index eface66..252ecdd 100644
--- a/ext/kgio/autopush.c
+++ b/ext/kgio/autopush.c
@@ -242,6 +242,7 @@ static void push_pending_data(VALUE io)
                 rb_sys_fail("setsockopt(TCP_CORK/TCP_NOPUSH, 1)");
 }
 #else /* !KGIO_NOPUSH */
+void kgio_autopush_recv(VALUE io){}
 void init_kgio_autopush(void)
 {
 }