Dnsdist: include <sys/endian.h> on FreeBSD #3551

Merged
merged 1 commit into from Mar 11, 2016

Projects

None yet

3 participants

@rubenk
Contributor
rubenk commented Mar 11, 2016

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++

@rubenk rubenk 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++
e95bd1a
@rgacogne rgacogne added the dnsdist label Mar 11, 2016
@ahupowerdns ahupowerdns merged commit 5c75d3e into PowerDNS:master Mar 11, 2016

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
@rubenk rubenk deleted the rubenk:include-endian-h-on-freebsd branch Mar 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment