From 8c6ed379eb9a9a2463074216e37519d6d112bfbf Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Thu, 2 Jul 2015 17:49:03 -0500 Subject: [PATCH] add compatible version of arpa/nameser.h for Windows --- include/arpa/nameser.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 include/arpa/nameser.h 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 @@ +/* + * Public domain + * arpa/inet.h compatibility shim + */ + +#ifndef _WIN32 +#include_next +#else +#include + +#ifndef INADDRSZ +#define INADDRSZ 4 +#endif + +#ifndef IN6ADDRSZ +#define IN6ADDRSZ 16 +#endif + +#ifndef INT16SZ +#define INT16SZ 2 +#endif + +#endif