about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2014-02-04 02:42:51 +0000
committerEric Wong <normalperson@yhbt.net>2014-02-04 02:52:28 +0000
commitcf4c09c3f280850cd5a018d603e9df08ce54ade2 (patch)
treedb369fd9864f80524a3911baa3cbf73cdeae20de
parent070b5aeb9313ef09303dffa7bc72c771f6f86f31 (diff)
downloadkgio-cf4c09c3f280850cd5a018d603e9df08ce54ade2.tar.gz
This will allow us to support past/future Rubies without
rb_thread_io_blocking_region but still have other ways
of releasing GVL.
-rw-r--r--ext/kgio/write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/kgio/write.c b/ext/kgio/write.c
index d118fd0..04f2866 100644
--- a/ext/kgio/write.c
+++ b/ext/kgio/write.c
@@ -160,7 +160,7 @@ static VALUE kgio_trysend(VALUE io, VALUE str)
 #  define kgio_trysend kgio_trywrite
 #endif /* ! USE_MSG_DONTWAIT */
 
-#ifdef HAVE_RB_THREAD_IO_BLOCKING_REGION
+#if defined(KGIO_HAVE_THREAD_CALL_WITHOUT_GVL)
 #  include "blocking_io_region.h"
 #ifdef MSG_DONTWAIT /* Linux only */
 #  define MY_MSG_DONTWAIT (MSG_DONTWAIT)