]> git.ipfire.org Git - thirdparty/pdns.git/commit
Fix compilation on systems that do not define HOST_NAME_MAX 9128/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 19 May 2020 14:46:33 +0000 (16:46 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 19 May 2020 15:48:39 +0000 (17:48 +0200)
commit5c21b47fbc35ddcb8d939eb8541c6c3bad1080a8
tree08946ef6fea8ce7b548d03026059a561728a39a9
parent21c4e313f9fbcde4b9db5dd18b8bd90c8f5aacbc
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!).

(cherry picked from commit 4c990a1b82e091d887d873c7da5254de84aabebb)
pdns/auth-carbon.cc
pdns/dnsdist-carbon.cc
pdns/misc.cc
pdns/misc.hh
pdns/rec-carbon.cc