(inet_ntop) [_WIN32]: Add HAVE_GETADDRINFO around inet_ntop.

MinGW does not support getnameinfo() for Windows 2000 or earlier.
This commit is contained in:
Ron Koenderink 2007-08-23 03:02:19 +00:00
parent 82f8738b16
commit 5bb91bd98b

View file

@ -321,6 +321,7 @@ posix_socket(int domain, int type, int protocol)
return new_fd;
}
#ifdef HAVE_GETADDRINFO
const char *
inet_ntop(int af, const void *source, char *dest, socklen_t len)
{
@ -348,6 +349,7 @@ inet_ntop(int af, const void *source, char *dest, socklen_t len)
}
return NULL;
}
#endif
#define FILE_FUNCTION(type, expr) \
int handle; \