Skip to content

Commit 28d4f9f

Browse files
author
Felipe Zimmerle
committed
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.
1 parent bd0980f commit 28d4f9f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apache2/msc_util.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -836,6 +836,7 @@ char *m_strcasestr(const char *haystack, const char *needle) {
836836
}
837837

838838
#ifdef WIN32
839+
#if !(NTDDI_VERSION >= NTDDI_VISTA)
839840
int inet_pton(int family, const char *src, void *dst) {
840841
struct addrinfo addr;
841842
struct sockaddr_in *in = NULL;
@@ -875,6 +876,7 @@ int inet_pton(int family, const char *src, void *dst) {
875876
return -1;
876877
}
877878
#endif
879+
#endif
878880

879881
/**
880882
*

0 commit comments

Comments
 (0)