From: Ruben Kerkhof Date: Fri, 11 Mar 2016 12:07:27 +0000 (+0100) Subject: Dnsdist: include on FreeBSD X-Git-Tag: dnsdist-1.0.0-beta1~127^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e95bd1ae6e503fbfc433092b1fe73dd8489a8775;p=thirdparty%2Fpdns.git Dnsdist: include on FreeBSD Fixes: In file included from dnsdist.hh:6:0, from dnsdist.cc:23: iputils.hh: In member function 'NetmaskTree::node_type& NetmaskTree::insert(const key_type&)': iputils.hh:532:73: error: there are no arguments to 'be32toh' that depend on a template parameter, so a declaration of 'be32toh' must be available [-fpermissive] std::bitset<32> addr(be32toh(key.getNetwork().sin4.sin_addr.s_addr)); ^ When building with g++ --- diff --git a/pdns/iputils.hh b/pdns/iputils.hh index 752cac4f8b..e614a20ead 100644 --- a/pdns/iputils.hh +++ b/pdns/iputils.hh @@ -79,6 +79,10 @@ #endif +#ifdef __FreeBSD__ +#include +#endif + union ComboAddress { struct sockaddr_in sin4; struct sockaddr_in6 sin6;