add compatible version of arpa/nameser.h for Windows

This commit is contained in:
Brent Cook 2015-07-02 17:49:03 -05:00
parent 545454277a
commit 8c6ed379eb

23
include/arpa/nameser.h Normal file
View File

@ -0,0 +1,23 @@
/*
* Public domain
* arpa/inet.h compatibility shim
*/
#ifndef _WIN32
#include_next <arpa/nameser.h>
#else
#include <win32netcompat.h>
#ifndef INADDRSZ
#define INADDRSZ 4
#endif
#ifndef IN6ADDRSZ
#define IN6ADDRSZ 16
#endif
#ifndef INT16SZ
#define INT16SZ 2
#endif
#endif