Commit | Line | Data |
---|---|---|
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 | ||
7 | typedef int socklen_t; | |
f16b7405 BC |
8 | typedef 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 | |
13 | in_addr_t inet_network(const char *cp); | |
35922a21 | 14 | |
a6ab5391 | 15 | #ifdef CONFIG_WINDOWS_XP |
35922a21 BC |
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); | |
a6ab5391 | 19 | #endif |
35922a21 BC |
20 | |
21 | #endif /* ARPA_INET_H */ |