]> git.ipfire.org Git - thirdparty/pdns.git/commit
Fix compilation on systems that do not define HOST_NAME_MAX 9127/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 2 Jun 2020 10:24:34 +0000 (12:24 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 2 Jun 2020 10:24:34 +0000 (12:24 +0200)
commit64d382318f6eacfd3dd96d470cad353d31457752
tree2e85679c9879b75876a62dc028a8d3db0a5c3da8
parent7c2b319eb3e577ae8644a79a3cefc666692fae1f
Fix compilation on systems that do not define HOST_NAME_MAX

On FreeBSD at least, HOST_NAME_MAX is not defined and we need to
use sysconf() to get the value at runtime instead.
Based on a work done by @RvdE to make the recursor compile on
FreeBSD (many thanks!).
pdns/auth-carbon.cc
pdns/dnsdist-carbon.cc
pdns/misc.cc
pdns/misc.hh
pdns/rec-carbon.cc