diff options
author | Brent Cook <bcook@openbsd.org> | 2015-07-02 17:49:03 -0500 |
---|---|---|
committer | Brent Cook <bcook@openbsd.org> | 2015-07-02 17:49:03 -0500 |
commit | 8c6ed379eb9a9a2463074216e37519d6d112bfbf (patch) | |
tree | 322b7f629ee1cf791cb8c1455465bad031848736 | |
parent | 545454277a0be1dcb17b64cb10530a881aae760d (diff) | |
download | portable-8c6ed379eb9a9a2463074216e37519d6d112bfbf.tar.gz portable-8c6ed379eb9a9a2463074216e37519d6d112bfbf.tar.bz2 portable-8c6ed379eb9a9a2463074216e37519d6d112bfbf.zip |
add compatible version of arpa/nameser.h for Windows
Diffstat (limited to '')
-rw-r--r-- | include/arpa/nameser.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/arpa/nameser.h b/include/arpa/nameser.h new file mode 100644 index 0000000..0126a60 --- /dev/null +++ b/include/arpa/nameser.h | |||
@@ -0,0 +1,23 @@ | |||
1 | /* | ||
2 | * Public domain | ||
3 | * arpa/inet.h compatibility shim | ||
4 | */ | ||
5 | |||
6 | #ifndef _WIN32 | ||
7 | #include_next <arpa/nameser.h> | ||
8 | #else | ||
9 | #include <win32netcompat.h> | ||
10 | |||
11 | #ifndef INADDRSZ | ||
12 | #define INADDRSZ 4 | ||
13 | #endif | ||
14 | |||
15 | #ifndef IN6ADDRSZ | ||
16 | #define IN6ADDRSZ 16 | ||
17 | #endif | ||
18 | |||
19 | #ifndef INT16SZ | ||
20 | #define INT16SZ 2 | ||
21 | #endif | ||
22 | |||
23 | #endif | ||