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

- old
+ new

@@ -144,13 +144,10 @@ rb_raise(rb_eTypeError, "invalid address"); return NULL; } #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; const void *buf; size_t buflen; const struct sockaddr *addr; @@ -198,10 +195,10 @@ if (w < 0) rb_sys_fail("sendto"); if ((size_t)w == a.buflen) return Qnil; - return rb_str_subseq(str, w, a.buflen - w); + return MY_STR_SUBSEQ(str, w, a.buflen - w); } #endif /* MSG_FASTOPEN */ /* * call-seq: