diff options
author | Kristján Valur Jónsson <kristjan@ccpgames.com> | 2012-03-31 13:35:00 (GMT) |
---|---|---|
committer | Kristján Valur Jónsson <kristjan@ccpgames.com> | 2012-03-31 13:35:00 (GMT) |
commit | 310052c1f0992ac7063307f4cbcc26fbc54d3e6b (patch) | |
tree | eb878132bb679e2120950229203fabcdcaf94c5d /Modules | |
parent | d4bb972839143be004673bfa788739d1c1bfd49d (diff) | |
download | cpython-310052c1f0992ac7063307f4cbcc26fbc54d3e6b.zip cpython-310052c1f0992ac7063307f4cbcc26fbc54d3e6b.tar.gz cpython-310052c1f0992ac7063307f4cbcc26fbc54d3e6b.tar.bz2 |
Fix warning when compiling socketmodule.c with VS2010
VS2010 defineds the old errno constants in addition to the WSA* ones.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/socketmodule.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 |