Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fccac2e

Browse files
committed
Patch #725942: Always rename emulation functions.
1 parent 9c5ea50 commit fccac2e

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

Modules/socketmodule.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,16 +251,19 @@ const char *inet_ntop(int af, const void *src, char *dst, socklen_t size);
251251
Find to check for Jaguar is that it has getnameinfo(), which
252252
older releases don't have */
253253
#undef HAVE_GETADDRINFO
254-
/* avoid clashes with the C library definition of the symbol. */
255-
#define getaddrinfo fake_getaddrinfo
256254
#endif
257255
#endif
258256

259257
/* I know this is a bad practice, but it is the easiest... */
260258
#if !defined(HAVE_GETADDRINFO)
259+
/* avoid clashes with the C library definition of the symbol. */
260+
#define getaddrinfo fake_getaddrinfo
261+
#define gai_strerror fake_gai_strerror
262+
#define freeaddrinfo fake_freeaddrinfo
261263
#include "getaddrinfo.c"
262264
#endif
263265
#if !defined(HAVE_GETNAMEINFO)
266+
#define getnameinfo fake_getnameinfo
264267
#include "getnameinfo.c"
265268
#endif
266269

0 commit comments

Comments
 (0)