Fix warning when compiling socketmodule.c with VS2010

VS2010 defineds the old errno constants in addition to the WSA* ones.
This commit is contained in:
Kristján Valur Jónsson 2012-03-31 13:35:00 +00:00
parent d4bb972839
commit 310052c1f0

View file

@ -390,6 +390,7 @@ dup_socket(SOCKET handle)
#endif
#ifdef MS_WIN32
#undef EAFNOSUPPORT
#define EAFNOSUPPORT WSAEAFNOSUPPORT
#define snprintf _snprintf
#endif