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++
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
@rubenk rubenk deleted the include-endian-h-on-freebsd branch March 11, 2016 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants