diff --git a/ext/socket/init.c b/ext/socket/init.c index 8e405609ba..8f4ae4d905 100644 --- a/ext/socket/init.c +++ b/ext/socket/init.c @@ -12,6 +12,7 @@ #ifdef _WIN32 VALUE rb_w32_conv_from_wchar(const WCHAR *wstr, rb_encoding *enc); +#include #endif VALUE rb_cBasicSocket; @@ -613,7 +614,7 @@ void rsock_make_fd_nonblock(int fd) { #ifdef _WIN32 - return; + rb_w32_set_nonblock(fd); #endif int flags;