diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2003-05-01 05:20:46 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2003-05-01 05:20:46 (GMT) |
commit | fccac2e61aa34bd0e63ebc4eac62d8bdac3e7a21 (patch) | |
tree | d00f2c1b510101368c4055c68cc3d42dc23cbaea /Modules/socketmodule.c | |
parent | 9c5ea50c25aa0426069d69b3ad5de208d45762dc (diff) | |
download | cpython-fccac2e61aa34bd0e63ebc4eac62d8bdac3e7a21.zip cpython-fccac2e61aa34bd0e63ebc4eac62d8bdac3e7a21.tar.gz cpython-fccac2e61aa34bd0e63ebc4eac62d8bdac3e7a21.tar.bz2 |
Patch #725942: Always rename emulation functions.
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r-- | Modules/socketmodule.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index fd6ede0..b9e9bd4 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -251,16 +251,19 @@ const char *inet_ntop(int af, const void *src, char *dst, socklen_t size); 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 |