(svn r1970) Fix some warnings which Cygwin showed

This commit is contained in:
tron
2005-03-09 11:49:34 +00:00
parent c0ac4cfe51
commit 5f1345ac0e
4 changed files with 22 additions and 21 deletions

View File

@@ -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