mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 13:56:01 +03:00
iis: Fix inet_pton build problem
There is a function named inet_pton on windows API, with different signature. This patch just override the windows function and point the inet_pton to our implementation.
This commit is contained in:
parent
b32cb7d9ab
commit
a4202146b8
@ -836,7 +836,7 @@ char *m_strcasestr(const char *haystack, const char *needle) {
|
||||
}
|
||||
|
||||
#ifdef WIN32
|
||||
int inet_pton(int family, const char *src, void *dst) {
|
||||
int my_inet_pton(int family, const char *src, void *dst) {
|
||||
struct addrinfo addr;
|
||||
struct sockaddr_in *in = NULL;
|
||||
#if APR_HAVE_IPV6
|
||||
|
@ -50,6 +50,9 @@ int DSOLOCAL inet_pton(int family, const char *src, void *dst);
|
||||
int DSOLOCAL swap_int32(int x);
|
||||
#endif
|
||||
|
||||
#ifdef WIN32
|
||||
#define inet_pton(x, y, z) my_inet_pton(x, y, z)
|
||||
#endif
|
||||
|
||||
char DSOLOCAL *utf8_unicode_inplace_ex(apr_pool_t *mp, unsigned char *input, long int input_len, int *changed);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user