summaryrefslogtreecommitdiff
path: root/network_core.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-03-09 11:49:34 +0000
committertron <tron@openttd.org>2005-03-09 11:49:34 +0000
commit34f14e657dda7e3c6e54894a4f889c9165357da7 (patch)
tree8109ab3a32c1c3ee92fe107600ce7b9a9eb55b5e /network_core.h
parenta571f31c95d510d371aef19a7cb13e8cf6934b36 (diff)
downloadopenttd-34f14e657dda7e3c6e54894a4f889c9165357da7.tar.xz
(svn r1970) Fix some warnings which Cygwin showed
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