]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Mac OS X Jaguar (developer preview) seems to have a working getaddrinfo().
authorJack Jansen <jack.jansen@cwi.nl>
Tue, 2 Jul 2002 14:40:42 +0000 (14:40 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Tue, 2 Jul 2002 14:40:42 +0000 (14:40 +0000)
Modules/socketmodule.c

index 477dc31677880c4cdba34bfa8dcce5830c11efcb..3b194b3f88032d21a429d3173ef6e0c81209379f 100644 (file)
@@ -219,10 +219,15 @@ const char *inet_ntop(int af, const void *src, char *dst, socklen_t size);
    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. Ths easiest way I could
+   Find to check for Jaguar is that it has getnameinfo(), which
+   older releases don't have */
 #undef HAVE_GETADDRINFO
 /* avoid clashes with the C library definition of the symbol. */
 #define getaddrinfo fake_getaddrinfo
 #endif
+#endif
 
 /* I know this is a bad practice, but it is the easiest... */
 #if !defined(HAVE_GETADDRINFO)