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

Skip to content

Commit 84262fb

Browse files
committed
Mac OS X Jaguar (developer preview) seems to have a working getaddrinfo().
1 parent ea40563 commit 84262fb

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Modules/socketmodule.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,10 +219,15 @@ const char *inet_ntop(int af, const void *src, char *dst, socklen_t size);
219219
determine the bug just by checking for __APPLE__. If this bug
220220
gets ever fixed, perhaps checking for sys/version.h would be
221221
appropriate, which is 10/0 on the system with the bug. */
222+
#ifndef HAVE_GETNAMEINFO
223+
/* This bug seems to be fixed in Jaguar. Ths easiest way I could
224+
Find to check for Jaguar is that it has getnameinfo(), which
225+
older releases don't have */
222226
#undef HAVE_GETADDRINFO
223227
/* avoid clashes with the C library definition of the symbol. */
224228
#define getaddrinfo fake_getaddrinfo
225229
#endif
230+
#endif
226231

227232
/* I know this is a bad practice, but it is the easiest... */
228233
#if !defined(HAVE_GETADDRINFO)

0 commit comments

Comments
 (0)