ext/kgio/write.c in kgio-2.9.1 vs ext/kgio/write.c in kgio-2.9.2
- old
+ new
@@ -153,11 +153,11 @@
#else /* ! USE_MSG_DONTWAIT */
# define kgio_send kgio_write
# define kgio_trysend kgio_trywrite
#endif /* ! USE_MSG_DONTWAIT */
-#if defined(KGIO_HAVE_THREAD_CALL_WITHOUT_GVL)
+#if defined(KGIO_WITHOUT_GVL)
# include "blocking_io_region.h"
#ifdef MSG_DONTWAIT /* Linux only */
# define MY_MSG_DONTWAIT (MSG_DONTWAIT)
#else
# define MY_MSG_DONTWAIT (0)
@@ -254,9 +254,9 @@
*/
mSocketMethods = rb_define_module_under(mKgio, "SocketMethods");
rb_define_method(mSocketMethods, "kgio_write", kgio_send, 1);
rb_define_method(mSocketMethods, "kgio_trywrite", kgio_trysend, 1);
-#if defined(KGIO_HAVE_THREAD_CALL_WITHOUT_GVL)
+#if defined(KGIO_WITHOUT_GVL)
rb_define_method(mSocketMethods, "kgio_syssend", kgio_syssend, 2);
#endif
}