Mercurial > cpython-lru_cache-weakref
diff Modules/socketmodule.c @ 18879:8c402adeeccb legacy-trunk
Temporarily work around bug #445928: Force usage of getaddrinfo emulation
code on Darwin, since the C library version of that seems to be broken.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Mon, 30 Jul 2001 16:52:55 +0000 |
| parents | 4677d2ff3150 |
| children | 510f7f6a877e |
line wrap: on
line diff
--- a/Modules/socketmodule.c Mon Jul 30 12:30:08 2001 +0000 +++ b/Modules/socketmodule.c Mon Jul 30 16:52:55 2001 +0000 @@ -219,10 +219,14 @@ #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
