diff options
| author | Brent Cook <bcook@openbsd.org> | 2015-06-29 22:51:40 -0500 |
|---|---|---|
| committer | Brent Cook <busterb@gmail.com> | 2015-07-02 00:19:53 -0500 |
| commit | 545454277a0be1dcb17b64cb10530a881aae760d (patch) | |
| tree | debdf3d7ff6eb7a877a813fd01fc414a0316c883 /include | |
| parent | 8414df69bc5463e13d91b865d8f21c294e2fe18b (diff) | |
| download | portable-545454277a0be1dcb17b64cb10530a881aae760d.tar.gz portable-545454277a0be1dcb17b64cb10530a881aae760d.tar.bz2 portable-545454277a0be1dcb17b64cb10530a881aae760d.zip | |
add check for inet_pton, nudge minimum win32 compat to 0x0501
Diffstat (limited to 'include')
| -rw-r--r-- | include/Makefile.am | 1 | ||||
| -rw-r--r-- | include/arpa/inet.h | 9 |
2 files changed, 10 insertions, 0 deletions
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 | |||
| 14 | noinst_HEADERS += win32netcompat.h | 14 | noinst_HEADERS += win32netcompat.h |
| 15 | 15 | ||
| 16 | noinst_HEADERS += arpa/inet.h | 16 | noinst_HEADERS += arpa/inet.h |
| 17 | noinst_HEADERS += arpa/nameser.h | ||
| 17 | 18 | ||
| 18 | noinst_HEADERS += machine/endian.h | 19 | noinst_HEADERS += machine/endian.h |
| 19 | 20 | ||
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 @@ | |||
| 7 | #include_next <arpa/inet.h> | 7 | #include_next <arpa/inet.h> |
| 8 | #else | 8 | #else |
| 9 | #include <win32netcompat.h> | 9 | #include <win32netcompat.h> |
| 10 | |||
| 11 | #ifndef AI_ADDRCONFIG | ||
| 12 | #define AI_ADDRCONFIG 0x00000400 | ||
| 13 | #endif | ||
| 14 | |||
| 15 | #endif | ||
| 16 | |||
| 17 | #ifndef HAVE_INET_PTON | ||
| 18 | int inet_pton(int af, const char * restrict src, void * restrict dst); | ||
| 10 | #endif | 19 | #endif |
