diff options
author | Eric Wong <e@80x24.org> | 2014-02-04 02:42:51 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2014-02-04 02:52:28 +0000 |
commit | cf4c09c3f280850cd5a018d603e9df08ce54ade2 (patch) | |
tree | db369fd9864f80524a3911baa3cbf73cdeae20de | |
parent | 070b5aeb9313ef09303dffa7bc72c771f6f86f31 (diff) | |
download | kgio-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.c | 2 |
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) |