2014-11-19 07:43:07 -06:00
|
|
|
/*
|
|
|
|
* Public domain
|
|
|
|
* arpa/inet.h compatibility shim
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _WIN32
|
|
|
|
#include_next <arpa/inet.h>
|
|
|
|
#else
|
|
|
|
#include <win32netcompat.h>
|
2015-06-29 22:51:40 -05:00
|
|
|
|
|
|
|
#ifndef AI_ADDRCONFIG
|
|
|
|
#define AI_ADDRCONFIG 0x00000400
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2017-01-26 13:58:27 +09:00
|
|
|
#ifndef HAVE_INET_NTOP
|
|
|
|
const char * inet_ntop(int af, const void *src, char *dst, socklen_t size);
|
|
|
|
#endif
|
|
|
|
|
2015-06-29 22:51:40 -05:00
|
|
|
#ifndef HAVE_INET_PTON
|
2014-07-10 22:06:10 -05:00
|
|
|
int inet_pton(int af, const char * src, void * dst);
|
2014-11-19 07:43:07 -06:00
|
|
|
#endif
|