summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-09-28 22:03:27 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2010-09-28 22:03:27 (GMT)
commitc8f0196454d9a949aef7c55d6d292b497ab27d28 (patch)
tree653970cbc142d8b423b7a5b814f7531ba6c0c737 /Modules
parenta0b6873d476789270934ddb9d187323f4edbdd2b (diff)
downloadcpython-c8f0196454d9a949aef7c55d6d292b497ab27d28.zip
cpython-c8f0196454d9a949aef7c55d6d292b497ab27d28.tar.gz
cpython-c8f0196454d9a949aef7c55d6d292b497ab27d28.tar.bz2
Fix compilation under Windows
Diffstat (limited to 'Modules')
-rw-r--r--Modules/socketmodule.c3
1 files changed, 3 insertions, 0 deletions
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 @@ select_error(void)
}
#ifdef MS_WINDOWS
+#ifndef WSAEAGAIN
+#define WSAEAGAIN WSAEWOULDBLOCK
+#endif
#define CHECK_ERRNO(expected) \
(WSAGetLastError() == WSA ## expected)
#else