diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2002-07-02 14:40:42 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2002-07-02 14:40:42 (GMT) |
commit | 84262fb1f348a62a0e92bbf5bfdb1fae4de4bee5 (patch) | |
tree | 60c2b4e8c05c76239cfb662448c241ee8303c491 /Modules | |
parent | ea405639bff00b4c177026b474a9d75207c0bf1b (diff) | |
download | cpython-84262fb1f348a62a0e92bbf5bfdb1fae4de4bee5.zip cpython-84262fb1f348a62a0e92bbf5bfdb1fae4de4bee5.tar.gz cpython-84262fb1f348a62a0e92bbf5bfdb1fae4de4bee5.tar.bz2 |
Mac OS X Jaguar (developer preview) seems to have a working getaddrinfo().
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/socketmodule.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 477dc31..3b194b3 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -219,10 +219,15 @@ const char *inet_ntop(int af, const void *src, char *dst, socklen_t size); determine the bug just by checking for __APPLE__. If this bug gets ever fixed, perhaps checking for sys/version.h would be appropriate, which is 10/0 on the system with the bug. */ +#ifndef HAVE_GETNAMEINFO +/* This bug seems to be fixed in Jaguar. Ths easiest way I could + Find to check for Jaguar is that it has getnameinfo(), which + older releases don't have */ #undef HAVE_GETADDRINFO /* avoid clashes with the C library definition of the symbol. */ #define getaddrinfo fake_getaddrinfo #endif +#endif /* I know this is a bad practice, but it is the easiest... */ #if !defined(HAVE_GETADDRINFO) |