fix windows wesnothd infinite loop issue
This commit is contained in:
parent
0045363070
commit
eb3f0cd9e2
1 changed files with 4 additions and 2 deletions
|
@ -419,8 +419,10 @@ static SOCKET_STATE send_buffer(TCPsocket sock, std::vector<char>& buf, int in_s
|
|||
}
|
||||
return SOCKET_READY;
|
||||
}
|
||||
#if defined(EAGAIN) && !defined(__BEOS__) && !defined(_WIN32)
|
||||
if(errno == EAGAIN)
|
||||
#if defined(_WIN32)
|
||||
if(WSAGetLastError() == WSAEWOULDBLOCK)
|
||||
#elif defined(EAGAIN) && !defined(__BEOS__)
|
||||
if(errno == EAGAIN)
|
||||
#elif defined(EWOULDBLOCK)
|
||||
if(errno == EWOULDBLOCK)
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue