add check for inet_pton, nudge minimum win32 compat to 0x0501

This commit is contained in:
Brent Cook
2015-06-29 22:51:40 -05:00
committed by Brent Cook
parent 8414df69bc
commit 545454277a
6 changed files with 229 additions and 2 deletions

View File

@@ -14,6 +14,7 @@ noinst_HEADERS += unistd.h
noinst_HEADERS += win32netcompat.h
noinst_HEADERS += arpa/inet.h
noinst_HEADERS += arpa/nameser.h
noinst_HEADERS += machine/endian.h

View File

@@ -7,4 +7,13 @@
#include_next <arpa/inet.h>
#else
#include <win32netcompat.h>
#ifndef AI_ADDRCONFIG
#define AI_ADDRCONFIG 0x00000400
#endif
#endif
#ifndef HAVE_INET_PTON
int inet_pton(int af, const char * restrict src, void * restrict dst);
#endif