diff options
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | openbsd-compat/openbsd-compat.h | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 42e092f6..e27c514d 100644 --- a/configure.ac +++ b/configure.ac @@ -594,6 +594,7 @@ AC_CHECK_FUNCS([ \ pledge \ pw_dup \ reallocarray \ + res_hnok \ setenv \ setlinebuf \ setproctitle \ diff --git a/openbsd-compat/openbsd-compat.h b/openbsd-compat/openbsd-compat.h index a51385bd..5d2e2c27 100644 --- a/openbsd-compat/openbsd-compat.h +++ b/openbsd-compat/openbsd-compat.h @@ -208,10 +208,18 @@ void *reallocarray(void *, size_t, size_t); void errc(int, int, const char *, ...); #endif +#ifndef HAVE_INET_NET_PTON +int inet_net_pton(int, const char *, void *, size_t); +#endif + #ifndef HAVE_PLEDGE #define pledge(promises, paths) 0 #endif +#ifndef HAVE_RES_HNOK +int res_hnok(const char *); +#endif + #if !HAVE_DECL_AF_LOCAL #define AF_LOCAL AF_UNIX #endif |