From 545454277a0be1dcb17b64cb10530a881aae760d Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Mon, 29 Jun 2015 22:51:40 -0500 Subject: add check for inet_pton, nudge minimum win32 compat to 0x0501 --- include/Makefile.am | 1 + include/arpa/inet.h | 9 +++++++++ 2 files changed, 10 insertions(+) (limited to 'include') diff --git a/include/Makefile.am b/include/Makefile.am index 7e1ece2..b620938 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -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 diff --git a/include/arpa/inet.h b/include/arpa/inet.h index 5d43e4f..67740c6 100644 --- a/include/arpa/inet.h +++ b/include/arpa/inet.h @@ -7,4 +7,13 @@ #include_next #else #include + +#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 -- cgit v1.2.3-55-g6feb