From dcec3a43c081dc0b6cee9a792b52fbc0370255f3 Mon Sep 17 00:00:00 2001 From: "Michael W. Hudson" Date: Fri, 27 Sep 2002 08:51:20 +0000 Subject: [PATCH] Backport Jack's fix for Jaguar. --- Modules/socketmodule.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 5b483955899a..a7b5a5222af3 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -222,10 +222,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) -- 2.47.3