windows: target Windows 7 and add support for more than 64 CPUs
[fio.git] / os / windows / posix / include / arpa / inet.h
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 #ifdef CONFIG_WINDOWS_XP
16 const char *inet_ntop(int af, const void *restrict src,
17         char *restrict dst, socklen_t size);
18 int inet_pton(int af, const char *restrict src, void *restrict dst);
19 #endif
20
21 #endif /* ARPA_INET_H */