From: Antoine Pitrou Date: Tue, 28 Sep 2010 22:03:27 +0000 (+0000) Subject: Fix compilation under Windows X-Git-Tag: v3.2a3~115 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c8f0196454d9a949aef7c55d6d292b497ab27d28;p=thirdparty%2FPython%2Fcpython.git Fix compilation under Windows --- diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 017a63e57611..eac5b4e4d0e8 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