mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +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
|
||||
#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
|
||||
|
||||
/**
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user