Winsock fixes.

This commit is contained in:
Jan Vidar Krey
2011-08-08 00:07:05 +02:00
parent d01813ef48
commit 3bc764adf5
3 changed files with 21 additions and 42 deletions

View File

@@ -185,7 +185,11 @@ void net_on_accept(struct net_connection* con, int event, void *arg)
int fd = net_accept(server_fd, &ipaddr);
if (fd == -1)
{
#ifdef WINSOCK
if (net_error() == WSAEWOULDBLOCK)
#else
if (net_error() == EWOULDBLOCK)
#endif
{
break;
}