]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove vestigial code in socketmodule.c for Mac OS X 10.1 (#131090)
authorMax Bachmann <kontakt@maxbachmann.de>
Thu, 13 Mar 2025 04:13:07 +0000 (05:13 +0100)
committerGitHub <noreply@github.com>
Thu, 13 Mar 2025 04:13:07 +0000 (00:13 -0400)
Modules/socketmodule.c

index 916ad35623e94d8697557461dcc00050fc20755b..aa6f9c2bd8b705570c16d2bcba93b36ceea25943 100644 (file)
@@ -427,21 +427,6 @@ remove_unusable_flags(PyObject *m)
 #endif
 
 #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
 #define USE_INET_ATON_WEAKLINK
 #endif