diff Modules/socketmodule.c @ 28913:b04c074586aa legacy-trunk

Patch #725942: Always rename emulation functions.
author Martin v. Löwis <martin@v.loewis.de>
date Thu, 01 May 2003 05:20:46 +0000
parents 57e61588571b
children a769e079bb12
line wrap: on
line diff
--- a/Modules/socketmodule.c	Thu May 01 05:05:09 2003 +0000
+++ b/Modules/socketmodule.c	Thu May 01 05:20:46 2003 +0000
@@ -251,16 +251,19 @@
    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)
+/* avoid clashes with the C library definition of the symbol. */
+#define getaddrinfo fake_getaddrinfo
+#define gai_strerror fake_gai_strerror
+#define freeaddrinfo fake_freeaddrinfo
 #include "getaddrinfo.c"
 #endif
 #if !defined(HAVE_GETNAMEINFO)
+#define getnameinfo fake_getnameinfo
 #include "getnameinfo.c"
 #endif