diff options
author | Steve Dower <steve.dower@microsoft.com> | 2015-03-02 16:01:10 (GMT) |
---|---|---|
committer | Steve Dower <steve.dower@microsoft.com> | 2015-03-02 16:01:10 (GMT) |
commit | 3e96f324dcdbeb78fcd8fa4ffe2cd0c67f3828b2 (patch) | |
tree | e717f66fa69341710e7a5f35300714c40011d595 /Modules/socketmodule.h | |
parent | 2f3d440549345857c7b1a6deb377b5b69052f639 (diff) | |
download | cpython-3e96f324dcdbeb78fcd8fa4ffe2cd0c67f3828b2.zip cpython-3e96f324dcdbeb78fcd8fa4ffe2cd0c67f3828b2.tar.gz cpython-3e96f324dcdbeb78fcd8fa4ffe2cd0c67f3828b2.tar.bz2 |
Issue #23451: Update pyconfig.h for Windows to require Vista headers and remove unnecessary version checks.
Diffstat (limited to 'Modules/socketmodule.h')
-rw-r--r-- | Modules/socketmodule.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Modules/socketmodule.h b/Modules/socketmodule.h index b83f9af..4b6a10e 100644 --- a/Modules/socketmodule.h +++ b/Modules/socketmodule.h @@ -14,6 +14,13 @@ #else /* MS_WINDOWS */ # include <winsock2.h> +/* Windows 'supports' CMSG_LEN, but does not follow the POSIX standard + * interface at all, so there is no point including the code that + * attempts to use it. + */ +# ifdef PySocket_BUILDING_SOCKET +# undef CMSG_LEN +# endif # include <ws2tcpip.h> /* VC6 is shipped with old platform headers, and does not have MSTcpIP.h * Separate SDKs have all the functions we want, but older ones don't have |