Fix warning when compiling socketmodule.c with VS2010

VS2010 defineds the old errno constants in addition to the WSA* ones.
parent d4bb9728
...@@ -390,6 +390,7 @@ dup_socket(SOCKET handle) ...@@ -390,6 +390,7 @@ dup_socket(SOCKET handle)
#endif #endif
#ifdef MS_WIN32 #ifdef MS_WIN32
#undef EAFNOSUPPORT
#define EAFNOSUPPORT WSAEAFNOSUPPORT #define EAFNOSUPPORT WSAEAFNOSUPPORT
#define snprintf _snprintf #define snprintf _snprintf
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment