From: Kristján Valur Jónsson Date: Sat, 31 Mar 2012 13:35:00 +0000 (+0000) Subject: Fix warning when compiling socketmodule.c with VS2010 X-Git-Tag: v3.3.0a2~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=310052c1f0992ac7063307f4cbcc26fbc54d3e6b;p=python Fix warning when compiling socketmodule.c with VS2010 VS2010 defineds the old errno constants in addition to the WSA* ones. --- diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index df1c9f917f..d741d2cc48 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -390,6 +390,7 @@ dup_socket(SOCKET handle) #endif #ifdef MS_WIN32 +#undef EAFNOSUPPORT #define EAFNOSUPPORT WSAEAFNOSUPPORT #define snprintf _snprintf #endif