]> git.pond.sub.org Git - empserver/commitdiff
(inet_ntop) [_WIN32]: Add HAVE_GETADDRINFO around inet_ntop.
authorRon Koenderink <rkoenderink@yahoo.ca>
Thu, 23 Aug 2007 03:02:19 +0000 (03:02 +0000)
committerRon Koenderink <rkoenderink@yahoo.ca>
Thu, 23 Aug 2007 03:02:19 +0000 (03:02 +0000)
MinGW does not support getnameinfo() for Windows 2000 or earlier.

src/lib/w32/posixio.c

index 5b7708a1d9b7cb50d2cb9dbd89fcfce6174fd103..e3a445424b1369f591d2e53b43ecd5d0ca0ac5fa 100644 (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;                                                        \