commit | c8f0196454d9a949aef7c55d6d292b497ab27d28 | [log] [tgz] |
---|---|---|
author | Antoine Pitrou <solipsis@pitrou.net> | Tue Sep 28 22:03:27 2010 +0000 |
committer | Antoine Pitrou <solipsis@pitrou.net> | Tue Sep 28 22:03:27 2010 +0000 |
tree | 653970cbc142d8b423b7a5b814f7531ba6c0c737 | |
parent | a0b6873d476789270934ddb9d187323f4edbdd2b [diff] |
Fix compilation under Windows
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 017a63e..eac5b4e 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c
@@ -475,6 +475,9 @@ } #ifdef MS_WINDOWS +#ifndef WSAEAGAIN +#define WSAEAGAIN WSAEWOULDBLOCK +#endif #define CHECK_ERRNO(expected) \ (WSAGetLastError() == WSA ## expected) #else