mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Temporarily work around bug #445928: Force usage of getaddrinfo emulation
code on Darwin, since the C library version of that seems to be broken.
This commit is contained in:
parent
3bd071e3f7
commit
0b8de98f08
1 changed files with 6 additions and 2 deletions
|
@ -219,10 +219,14 @@ const char *inet_ntop(int af, const void *src, char *dst, socklen_t size);
|
|||
#endif
|
||||
|
||||
/* I know this is a bad practice, but it is the easiest... */
|
||||
#ifndef HAVE_GETADDRINFO
|
||||
/* XXX Temporarily work around bug #445928:
|
||||
getaddrinfo on Darwin seems to return an empty result list, with
|
||||
no error, even if host lookup ought to work fine. So use the
|
||||
emulation code for now. */
|
||||
#if !defined(HAVE_GETADDRINFO) || defined(__APPLE__)
|
||||
#include "getaddrinfo.c"
|
||||
#endif
|
||||
#ifndef HAVE_GETNAMEINFO
|
||||
#if !defined(HAVE_GETNAMEINFO) || defined(__APPLE__)
|
||||
#include "getnameinfo.c"
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue