diff Modules/socketmodule.c @ 76011:e46013f92013

Fix warning when compiling socketmodule.c with VS2010 VS2010 defineds the old errno constants in addition to the WSA* ones.
author Kristján Valur Jónsson <kristjan@ccpgames.com>
date Sat, 31 Mar 2012 13:35:00 +0000
parents 2f10c1ad4b21
children 5be4d8fc9c44
line wrap: on
line diff
--- a/Modules/socketmodule.c	Sat Mar 31 13:08:11 2012 +0000
+++ b/Modules/socketmodule.c	Sat Mar 31 13:35:00 2012 +0000
@@ -390,6 +390,7 @@
 #endif
 
 #ifdef MS_WIN32
+#undef EAFNOSUPPORT
 #define EAFNOSUPPORT WSAEAFNOSUPPORT
 #define snprintf _snprintf
 #endif