From: Ron Koenderink Date: Thu, 23 Aug 2007 03:02:19 +0000 (+0000) Subject: (inet_ntop) [_WIN32]: Add HAVE_GETADDRINFO around inet_ntop. X-Git-Tag: v4.3.10~35 X-Git-Url: http://git.pond.sub.org/?p=empserver;a=commitdiff_plain;h=5bb91bd98bab7a88ceccfe872e50a6c1fa0fe065 (inet_ntop) [_WIN32]: Add HAVE_GETADDRINFO around inet_ntop. MinGW does not support getnameinfo() for Windows 2000 or earlier. --- diff --git a/src/lib/w32/posixio.c b/src/lib/w32/posixio.c index 5b7708a1d..e3a445424 100644 --- a/src/lib/w32/posixio.c +++ b/src/lib/w32/posixio.c @@ -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; \