From 5f1345ac0e1a8447a37cb43e556dfdf55d1ee154 Mon Sep 17 00:00:00 2001 From: tron Date: Wed, 9 Mar 2005 11:49:34 +0000 Subject: (svn r1970) Fix some warnings which Cygwin showed --- network_core.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'network_core.h') 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 -- cgit v1.2.3-54-g00ecf