24 lines
412 B
C
24 lines
412 B
C
/*
|
|
* Public domain
|
|
* arpa/inet.h compatibility shim
|
|
*/
|
|
|
|
#ifndef _WIN32
|
|
#include_next <arpa/inet.h>
|
|
#else
|
|
#include <win32netcompat.h>
|
|
|
|
#ifndef AI_ADDRCONFIG
|
|
#define AI_ADDRCONFIG 0x00000400
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#ifndef HAVE_INET_NTOP
|
|
const char * inet_ntop(int af, const void *src, char *dst, socklen_t size);
|
|
#endif
|
|
|
|
#ifndef HAVE_INET_PTON
|
|
int inet_pton(int af, const char * src, void * dst);
|
|
#endif
|