diff options
| author | Christian Heimes <christian@cheimes.de> | 2007-11-22 11:21:16 (GMT) |
|---|---|---|
| committer | Christian Heimes <christian@cheimes.de> | 2007-11-22 11:21:16 (GMT) |
| commit | e8954f8ce7d60d5d926f29511cde99f2f3ea0630 (patch) | |
| tree | f49ff9e954b5eac92e2b8938baca8457f2371e49 /Modules/socketmodule.c | |
| parent | 64c06e327d48150fc548cf18a4a7ae0b890e69fa (diff) | |
| download | cpython-e8954f8ce7d60d5d926f29511cde99f2f3ea0630.zip cpython-e8954f8ce7d60d5d926f29511cde99f2f3ea0630.tar.gz cpython-e8954f8ce7d60d5d926f29511cde99f2f3ea0630.tar.bz2 | |
Backport of the PCbuild9 directory from the py3k branch.
I've finished the last task for the PCbuild9 directory today. I don't think there is much left to do. Now you can all play around with the shiny new VS 2008 and try the PGO builds. I was able to get a speed improvement of about 10% on py3k.
Have fun! :)
Diffstat (limited to 'Modules/socketmodule.c')
| -rw-r--r-- | Modules/socketmodule.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 0a71a50..5815ecf 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -297,9 +297,11 @@ int h_errno; /* not used */ #endif #ifndef HAVE_INET_PTON +#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < NTDDI_LONGHORN) int inet_pton(int af, const char *src, void *dst); const char *inet_ntop(int af, const void *src, char *dst, socklen_t size); #endif +#endif #ifdef __APPLE__ /* On OS X, getaddrinfo returns no error indication of lookup @@ -5039,6 +5041,7 @@ init_socket(void) #ifndef HAVE_INET_PTON +#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < NTDDI_LONGHORN) /* Simplistic emulation code for inet_pton that only works for IPv4 */ /* These are not exposed because they do not set errno properly */ @@ -5074,3 +5077,4 @@ inet_ntop(int af, const void *src, char *dst, socklen_t size) } #endif +#endif |
