Fix compilation under Windows

This commit is contained in:
Antoine Pitrou 2010-09-28 22:03:27 +00:00
parent a0b6873d47
commit c8f0196454
1 changed files with 3 additions and 0 deletions

View File

@ -475,6 +475,9 @@ select_error(void)
}
#ifdef MS_WINDOWS
#ifndef WSAEAGAIN
#define WSAEAGAIN WSAEWOULDBLOCK
#endif
#define CHECK_ERRNO(expected) \
(WSAGetLastError() == WSA ## expected)
#else