]> granicus.if.org Git - python/commitdiff
Fix compilation under Windows
authorAntoine Pitrou <solipsis@pitrou.net>
Tue, 28 Sep 2010 22:03:27 +0000 (22:03 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Tue, 28 Sep 2010 22:03:27 +0000 (22:03 +0000)
Modules/socketmodule.c

index 017a63e576111a4da2eeb073b107ab81be9381a6..eac5b4e4d0e85227ae9349cfbb433039213f69d4 100644 (file)
@@ -475,6 +475,9 @@ select_error(void)
 }
 
 #ifdef MS_WINDOWS
+#ifndef WSAEAGAIN
+#define WSAEAGAIN WSAEWOULDBLOCK
+#endif
 #define CHECK_ERRNO(expected) \
     (WSAGetLastError() == WSA ## expected)
 #else