mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
The patch from weck does a better job than my original idea. Thanks!
This commit is contained in:
parent
ad32deb20e
commit
96e7b3db65
1 changed files with 2 additions and 4 deletions
|
@ -285,8 +285,7 @@ typedef size_t socklen_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef HAVE_INET_PTON
|
#ifndef HAVE_INET_PTON
|
||||||
#if !(defined(_MSC_VER) && _MSC_VER>1499)
|
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < NTDDI_LONGHORN)
|
||||||
/* Don't redefine inet_pton in VS2008 */
|
|
||||||
int inet_pton(int af, const char *src, void *dst);
|
int inet_pton(int af, const char *src, void *dst);
|
||||||
const char *inet_ntop(int af, const void *src, char *dst, socklen_t size);
|
const char *inet_ntop(int af, const void *src, char *dst, socklen_t size);
|
||||||
#endif
|
#endif
|
||||||
|
@ -4805,8 +4804,7 @@ init_socket(void)
|
||||||
|
|
||||||
|
|
||||||
#ifndef HAVE_INET_PTON
|
#ifndef HAVE_INET_PTON
|
||||||
#if !(defined(_MSC_VER) && _MSC_VER>1499)
|
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < NTDDI_LONGHORN)
|
||||||
/* Don't redefine inet_pton in VS2008 */
|
|
||||||
|
|
||||||
/* Simplistic emulation code for inet_pton that only works for IPv4 */
|
/* Simplistic emulation code for inet_pton that only works for IPv4 */
|
||||||
/* These are not exposed because they do not set errno properly */
|
/* These are not exposed because they do not set errno properly */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue