win32 set the socket to nonblocking moe for win32

This commit is contained in:
Ronnie Sahlberg
2012-05-15 22:08:10 +10:00
parent db8dadab21
commit 824a33c834

View File

@@ -49,6 +49,8 @@
static void set_nonblocking(int fd)
{
#if defined(WIN32)
unsigned long opt = 1;
ioctlsocket(fd, FIONBIO, &opt);
#else
unsigned v;
v = fcntl(fd, F_GETFL, 0);