mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Fix compilation under Windows
This commit is contained in:
parent
a0b6873d47
commit
c8f0196454
1 changed files with 3 additions and 0 deletions
|
@ -475,6 +475,9 @@ select_error(void)
|
|||
}
|
||||
|
||||
#ifdef MS_WINDOWS
|
||||
#ifndef WSAEAGAIN
|
||||
#define WSAEAGAIN WSAEWOULDBLOCK
|
||||
#endif
|
||||
#define CHECK_ERRNO(expected) \
|
||||
(WSAGetLastError() == WSA ## expected)
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue