Commit | Line | Data |
---|---|---|
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 | #endif /* ARPA_INET_H */ |