aboutsummaryrefslogtreecommitdiff
path: root/oslib-win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'oslib-win32.c')
-rw-r--r--oslib-win32.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/oslib-win32.c b/oslib-win32.c
index 5f0759ffc4..5e3de7dc8a 100644
--- a/oslib-win32.c
+++ b/oslib-win32.c
@@ -73,6 +73,12 @@ void qemu_vfree(void *ptr)
VirtualFree(ptr, 0, MEM_RELEASE);
}
+void socket_set_block(int fd)
+{
+ unsigned long opt = 0;
+ ioctlsocket(fd, FIONBIO, &opt);
+}
+
void socket_set_nonblock(int fd)
{
unsigned long opt = 1;