add compatible version of arpa/nameser.h for Windows
This commit is contained in:
parent
545454277a
commit
8c6ed379eb
23
include/arpa/nameser.h
Normal file
23
include/arpa/nameser.h
Normal 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
|
Loading…
Reference in New Issue
Block a user