Fix Windows headers for IPv6
[fio.git] / os / windows / posix / include / arpa / inet.h
CommitLineData
35922a21
BC
1#ifndef ARPA_INET_H
2#define ARPA_INET_H
3
47c7c1f5 4#include <ws2tcpip.h>
35922a21
BC
5#include <inttypes.h>
6
7typedef int socklen_t;
f16b7405
BC
8typedef int in_addr_t;
9
47c7c1f5
BC
10/* EAI_SYSTEM isn't used on Windows, so map it to EAI_FAIL */
11#define EAI_SYSTEM EAI_FAIL
f16b7405
BC
12
13in_addr_t inet_network(const char *cp);
35922a21
BC
14
15const char *inet_ntop(int af, const void *restrict src,
16 char *restrict dst, socklen_t size);
17int inet_pton(int af, const char *restrict src, void *restrict dst);
18
19#endif /* ARPA_INET_H */