From 310052c1f0992ac7063307f4cbcc26fbc54d3e6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristj=C3=A1n=20Valur=20J=C3=B3nsson?= Date: Sat, 31 Mar 2012 13:35:00 +0000 Subject: Fix warning when compiling socketmodule.c with VS2010 VS2010 defineds the old errno constants in addition to the WSA* ones. --- Modules/socketmodule.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index df1c9f9..d741d2c 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 -- cgit v0.12