Update Windows code to fix build breakage
[fio.git] / os / windows / posix / include / arpa / inet.h
1 #ifndef ARPA_INET_H
2 #define ARPA_INET_H
3
4 #include <winsock2.h>
5 #include <inttypes.h>
6
7 typedef int socklen_t;
8 typedef int in_addr_t;
9
10 #define IP_MULTICAST_IF 2
11 #define IP_MULTICAST_TTL 3
12 #define IP_ADD_MEMBERSHIP 5
13
14 struct ip_mreq
15 {
16         struct in_addr imr_multiaddr;
17         struct in_addr imr_interface;
18 };
19
20 in_addr_t inet_network(const char *cp);
21
22 const char *inet_ntop(int af, const void *restrict src,
23         char *restrict dst, socklen_t size);
24 int inet_pton(int af, const char *restrict src, void *restrict dst);
25
26 #endif /* ARPA_INET_H */