1 #ifndef ARPA_INET_H
2 #define ARPA_INET_H
3 
4 #include <ws2tcpip.h>
5 #include <inttypes.h>
6 
7 typedef int socklen_t;
8 typedef int in_addr_t;
9 
10 /* EAI_SYSTEM isn't used on Windows, so map it to EAI_FAIL */
11 #define EAI_SYSTEM EAI_FAIL
12 
13 in_addr_t inet_network(const char *cp);
14 
15 const char *inet_ntop(int af, const void *restrict src,
16         char *restrict dst, socklen_t size);
17 int inet_pton(int af, const char *restrict src, void *restrict dst);
18 
19 #endif /* ARPA_INET_H */
20