From 28d4f9fce16109d6ef698d7c26ede7ebad076065 Mon Sep 17 00:00:00 2001 From: Felipe Zimmerle Date: Thu, 19 Dec 2013 13:02:21 -0800 Subject: [PATCH] iis: Checks Win version before declare inet_pton Checking for `!(NTDDI_VERSION >= NTDDI_VISTA)` to decide whenever or not to declare the inet_pton function. --- apache2/msc_util.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apache2/msc_util.c b/apache2/msc_util.c index bb9b4e78..b3fbb265 100644 --- a/apache2/msc_util.c +++ b/apache2/msc_util.c @@ -836,6 +836,7 @@ char *m_strcasestr(const char *haystack, const char *needle) { } #ifdef WIN32 +#if !(NTDDI_VERSION >= NTDDI_VISTA) int inet_pton(int family, const char *src, void *dst) { struct addrinfo addr; struct sockaddr_in *in = NULL; @@ -875,6 +876,7 @@ int inet_pton(int family, const char *src, void *dst) { return -1; } #endif +#endif /** *