summaryrefslogtreecommitdiff
path: root/ext/socket/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/socket/socket.c')
-rw-r--r--ext/socket/socket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/socket/socket.c b/ext/socket/socket.c
index f4b59f4adb..30ddc69d4b 100644
--- a/ext/socket/socket.c
+++ b/ext/socket/socket.c
@@ -169,8 +169,8 @@ sock_finalize(fptr)
if (!fptr->f) return;
s = get_osfhandle(fileno(fptr->f));
- myfdclose(fptr->f);
- if (fptr->f2) myfdclose(fptr->f2);
+ rb_w32_fdclose(fptr->f);
+ if (fptr->f2) rb_w32_fdclose(fptr->f2);
closesocket(s);
}
#endif