ext/kgio/read_write.c in kgio-1.2.0 vs ext/kgio/read_write.c in kgio-1.2.1

- old
+ new

@@ -338,12 +338,13 @@ #else /* ! USE_MSG_DONTWAIT */ # define kgio_send kgio_write # define kgio_trysend kgio_trywrite #endif /* ! USE_MSG_DONTWAIT */ -void init_kgio_read_write(VALUE mKgio) +void init_kgio_read_write(void) { VALUE mPipeMethods, mSocketMethods; + VALUE mKgio = rb_define_module("Kgio"); mKgio_WaitReadable = rb_const_get(mKgio, rb_intern("WaitReadable")); mKgio_WaitWritable = rb_const_get(mKgio, rb_intern("WaitWritable")); /*