windows: target Windows 7 and add support for more than 64 CPUs
[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 14
a6ab5391 15#ifdef CONFIG_WINDOWS_XP
35922a21
BC
16const char *inet_ntop(int af, const void *restrict src,
17 char *restrict dst, socklen_t size);
18int inet_pton(int af, const char *restrict src, void *restrict dst);
a6ab5391 19#endif
35922a21
BC
20
21#endif /* ARPA_INET_H */