Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Mar 11, 2016

Conversation

@rubenk
Copy link
Contributor

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

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++
@rgacogne rgacogne added the dnsdist label Mar 11, 2016
ahupowerdns added a commit that referenced this pull request Mar 11, 2016
Dnsdist: include <sys/endian.h> on FreeBSD
@ahupowerdns ahupowerdns merged commit 5c75d3e into PowerDNS:master Mar 11, 2016
1 check passed
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
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.