X-Git-Url: https://unix4lyfe.org/gitweb/darkstat-debian/blobdiff_plain/b6069b5cedf32ffb61978dba984fba393be6038a..53d9d497ad0dcb0c37efb23a5468762355db6512:/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 */