summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2001-07-30 16:52:55 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2001-07-30 16:52:55 (GMT)
commit0b8de98f08d70cb8c922e7c478e727cdc86ba025 (patch)
treea924d61bb4a42d0f6db1756e630a220c781c9453 /Modules
parent3bd071e3f76e0c131e63107828ac53783938258c (diff)
downloadcpython-0b8de98f08d70cb8c922e7c478e727cdc86ba025.zip
cpython-0b8de98f08d70cb8c922e7c478e727cdc86ba025.tar.gz
cpython-0b8de98f08d70cb8c922e7c478e727cdc86ba025.tar.bz2
Temporarily work around bug #445928: Force usage of getaddrinfo emulation
code on Darwin, since the C library version of that seems to be broken.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/socketmodule.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index d33e190..16b0852 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -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