]> git.ipfire.org Git - thirdparty/pdns.git/commit
Dnsdist: include <sys/endian.h> on FreeBSD 3551/head
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Fri, 11 Mar 2016 12:07:27 +0000 (13:07 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Fri, 11 Mar 2016 12:07:27 +0000 (13:07 +0100)
commite95bd1ae6e503fbfc433092b1fe73dd8489a8775
tree032c8eda892f1d7ae7f1838a7636ee7a3d3bb52d
parent0048c4c5cd8b77422bb186c742a656b7fceeb71a
Dnsdist: include <sys/endian.h> on FreeBSD

Fixes:
In file included from dnsdist.hh:6:0,
                 from dnsdist.cc:23:
iputils.hh: In member function 'NetmaskTree<T>::node_type& NetmaskTree<T>::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++
pdns/iputils.hh