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: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c8f0196454d9a949aef7c55d6d292b497ab27d28;p=python Fix compilation under Windows --- diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 017a63e576..eac5b4e4d0 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