aboutsummaryrefslogtreecommitdiff
path: root/include/compat/arpa/inet.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/compat/arpa/inet.h')
-rw-r--r--include/compat/arpa/inet.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/compat/arpa/inet.h b/include/compat/arpa/inet.h
new file mode 100644
index 0000000..0cea8c4
--- /dev/null
+++ b/include/compat/arpa/inet.h
@@ -0,0 +1,19 @@
1/*
2 * Public domain
3 * arpa/inet.h compatibility shim
4 */
5
6#ifndef _WIN32
7#include_next <arpa/inet.h>
8#else
9#include <win32netcompat.h>
10
11#ifndef AI_ADDRCONFIG
12#define AI_ADDRCONFIG 0x00000400
13#endif
14
15#endif
16
17#ifndef HAVE_INET_PTON
18int inet_pton(int af, const char * src, void * dst);
19#endif