mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Remove vestigial code in socketmodule.c for Mac OS X 10.1 (#131090)
This commit is contained in:
parent
db1e5827c4
commit
f7ac656c8e
1 changed files with 0 additions and 15 deletions
|
@ -427,21 +427,6 @@ remove_unusable_flags(PyObject *m)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
/* On OS X, getaddrinfo returns no error indication of lookup
|
|
||||||
failure, so we must use the emulation instead of the libinfo
|
|
||||||
implementation. Unfortunately, performing an autoconf test
|
|
||||||
for this bug would require DNS access for the machine performing
|
|
||||||
the configuration, which is not acceptable. Therefore, we
|
|
||||||
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. The easiest way I could
|
|
||||||
Find to check for Jaguar is that it has getnameinfo(), which
|
|
||||||
older releases don't have */
|
|
||||||
#undef HAVE_GETADDRINFO
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef HAVE_INET_ATON
|
#ifdef HAVE_INET_ATON
|
||||||
#define USE_INET_ATON_WEAKLINK
|
#define USE_INET_ATON_WEAKLINK
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue