X-Git-Url: https://unix4lyfe.org/gitweb/darkstat-debian/blobdiff_plain/a1e8056c92203d02860d719abb1d562453896da8..4da209d9116b41ab59eeedc5823bc2cb64b5bc3e:/dns.c diff --git a/dns.c b/dns.c index e8bdbb4..c89dc1b 100644 --- a/dns.c +++ b/dns.c @@ -29,6 +29,11 @@ #include #include +#ifdef __NetBSD__ +# define gethostbyaddr(addr, len, type) \ + gethostbyaddr((const char *)(addr), len, type) +#endif + static void dns_main(void) _noreturn_; /* the child process runs this */ #define CHILD 0 /* child process uses this socket */