Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c8f0196

Browse files
committed
Fix compilation under Windows
1 parent a0b6873 commit c8f0196

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Modules/socketmodule.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,9 @@ select_error(void)
475475
}
476476

477477
#ifdef MS_WINDOWS
478+
#ifndef WSAEAGAIN
479+
#define WSAEAGAIN WSAEWOULDBLOCK
480+
#endif
478481
#define CHECK_ERRNO(expected) \
479482
(WSAGetLastError() == WSA ## expected)
480483
#else

0 commit comments

Comments
 (0)