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
commit5f1345ac0e1a8447a37cb43e556dfdf55d1ee154 (patch)
tree8109ab3a32c1c3ee92fe107600ce7b9a9eb55b5e /network_core.h
parentc0ac4cfe517d54a7b08a7ea3da83a9e76c03f6dd (diff)
downloadopenttd-5f1345ac0e1a8447a37cb43e556dfdf55d1ee154.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