diff Modules/socketmodule.c @ 24078:702a5900df7d legacy-trunk

Mac OS X Jaguar (developer preview) seems to have a working getaddrinfo().
author Jack Jansen <jack.jansen@cwi.nl>
date Tue, 02 Jul 2002 14:40:42 +0000
parents ed1ba37a46b7
children 1598a1e473e2
line wrap: on
line diff
--- a/Modules/socketmodule.c	Tue Jul 02 00:52:30 2002 +0000
+++ b/Modules/socketmodule.c	Tue Jul 02 14:40:42 2002 +0000
@@ -219,10 +219,15 @@
    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)