mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-16 07:56:12 +03:00
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.
This commit is contained in:
parent
bd0980f63d
commit
28d4f9fce1
@ -836,6 +836,7 @@ char *m_strcasestr(const char *haystack, const char *needle) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
|
#if !(NTDDI_VERSION >= NTDDI_VISTA)
|
||||||
int inet_pton(int family, const char *src, void *dst) {
|
int inet_pton(int family, const char *src, void *dst) {
|
||||||
struct addrinfo addr;
|
struct addrinfo addr;
|
||||||
struct sockaddr_in *in = NULL;
|
struct sockaddr_in *in = NULL;
|
||||||
@ -875,6 +876,7 @@ int inet_pton(int family, const char *src, void *dst) {
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user