ext/kgio/connect.c in kgio-2.9.1 vs ext/kgio/connect.c in kgio-2.9.2

- old
+ new

@@ -143,11 +143,11 @@ } rb_raise(rb_eTypeError, "invalid address"); return NULL; } -#if defined(MSG_FASTOPEN) && defined(KGIO_HAVE_THREAD_CALL_WITHOUT_GVL) +#if defined(MSG_FASTOPEN) && defined(KGIO_WITHOUT_GVL) #ifndef HAVE_RB_STR_SUBSEQ #define rb_str_subseq rb_str_substr #endif struct tfo_args { int fd; @@ -381,10 +381,10 @@ cKgio_Socket = rb_define_class_under(mKgio, "Socket", cSocket); rb_include_module(cKgio_Socket, mSocketMethods); rb_define_singleton_method(cKgio_Socket, "new", kgio_new, -1); rb_define_singleton_method(cKgio_Socket, "connect", kgio_connect, 1); rb_define_singleton_method(cKgio_Socket, "start", kgio_start, 1); -#if defined(MSG_FASTOPEN) && defined(KGIO_HAVE_THREAD_CALL_WITHOUT_GVL) +#if defined(MSG_FASTOPEN) && defined(KGIO_WITHOUT_GVL) rb_define_method(cKgio_Socket, "kgio_fastopen", fastopen, 2); #endif /* * Document-class: Kgio::TCPSocket *