mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
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:
parent
d4bb972839
commit
310052c1f0
1 changed files with 1 additions and 0 deletions
|
@ -390,6 +390,7 @@ dup_socket(SOCKET handle)
|
|||
#endif
|
||||
|
||||
#ifdef MS_WIN32
|
||||
#undef EAFNOSUPPORT
|
||||
#define EAFNOSUPPORT WSAEAFNOSUPPORT
|
||||
#define snprintf _snprintf
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue