ext/kgio/write.c in kgio-2.9.0 vs ext/kgio/write.c in kgio-2.9.0.2.gf33a

- old
+ new

@@ -2,15 +2,10 @@ #include "kgio.h" #include "my_fileno.h" #include "nonblock.h" static VALUE sym_wait_writable; -/* prefer rb_str_subseq because we don't use negative offsets */ -#ifndef HAVE_RB_STR_SUBSEQ -#define rb_str_subseq rb_str_substr -#endif - struct wr_args { VALUE io; VALUE buf; const char *ptr; long len; @@ -259,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); -#ifdef USE_MSG_DONTWAIT +#if defined(KGIO_HAVE_THREAD_CALL_WITHOUT_GVL) rb_define_method(mSocketMethods, "kgio_syssend", kgio_syssend, 2); #endif }