about summary refs log tree commit homepage
path: root/ext/kgio/write.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/kgio/write.c')
-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)