mirror of
https://github.com/python/cpython.git
synced 2025-10-03 13:45:29 +00:00
Mac OS X Jaguar (developer preview) seems to have a working getaddrinfo().
This commit is contained in:
parent
ea405639bf
commit
84262fb1f3
1 changed files with 5 additions and 0 deletions
|
@ -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
|
determine the bug just by checking for __APPLE__. If this bug
|
||||||
gets ever fixed, perhaps checking for sys/version.h would be
|
gets ever fixed, perhaps checking for sys/version.h would be
|
||||||
appropriate, which is 10/0 on the system with the bug. */
|
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
|
#undef HAVE_GETADDRINFO
|
||||||
/* avoid clashes with the C library definition of the symbol. */
|
/* avoid clashes with the C library definition of the symbol. */
|
||||||
#define getaddrinfo fake_getaddrinfo
|
#define getaddrinfo fake_getaddrinfo
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/* I know this is a bad practice, but it is the easiest... */
|
/* I know this is a bad practice, but it is the easiest... */
|
||||||
#if !defined(HAVE_GETADDRINFO)
|
#if !defined(HAVE_GETADDRINFO)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue