summaryrefslogtreecommitdiff
path: root/network_core.h
diff options
context:
space:
mode:
Diffstat (limited to 'network_core.h')
-rw-r--r--network_core.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/network_core.h b/network_core.h
index 337de1853..3130ce2e3 100644
--- a/network_core.h
+++ b/network_core.h
@@ -150,7 +150,11 @@ typedef unsigned long in_addr_t;
static inline bool SetNonBlocking(int d)
{
+ #ifdef WIN32
+ u_long nonblocking = 1;
+ #else
int nonblocking = 1;
+ #endif
#if defined(__BEOS__) && defined(BEOS_NET_SERVER)
return setsockopt(d, SOL_SOCKET, SO_NONBLOCK, &nonblocking, sizeof(nonblocking)) == 0;
#else