diff Modules/socketmodule.c @ 64991:6c1f10e07455

Fix compilation under Windows
author Antoine Pitrou <solipsis@pitrou.net>
date Tue, 28 Sep 2010 22:03:27 +0000
parents 0f8c2eb89f46
children 2ce64960d490
line wrap: on
line diff
--- a/Modules/socketmodule.c	Tue Sep 28 21:52:30 2010 +0000
+++ b/Modules/socketmodule.c	Tue Sep 28 22:03:27 2010 +0000
@@ -475,6 +475,9 @@
 }
 
 #ifdef MS_WINDOWS
+#ifndef WSAEAGAIN
+#define WSAEAGAIN WSAEWOULDBLOCK
+#endif
 #define CHECK_ERRNO(expected) \
     (WSAGetLastError() == WSA ## expected)
 #else