From 1155e806d942cda6505d6f7777d48764e1069046 Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Thu, 8 Dec 2022 14:01:12 +1300 Subject: [PATCH] Add Windows support to `rsock_make_fd_nonblock`. --- ext/socket/init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/socket/init.c b/ext/socket/init.c index 0e312b540e..38222b66be 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; @@ -610,7 +611,7 @@ void rsock_make_fd_nonblock(int fd) { #ifdef _WIN32 - return; + rb_w32_set_nonblock(fd); #endif int flags;