]> git.ipfire.org Git - thirdparty/pdns.git/commit
Fix compilation on systems that do not define HOST_NAME_MAX 9133/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 16:01:55 +0000 (18:01 +0200)
commitd53b465c08ba7c9e9769c52424d9b1c610d5e1dc
tree5d2d361649b45af2e10dcb1c315e0a16c4e07cb3
parent1834cb12abcc251f0659a61b6466a6b5ccf098b8
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)
(cherry picked from commit 5c21b47fbc35ddcb8d939eb8541c6c3bad1080a8)
pdns/auth-carbon.cc
pdns/dnsdist-carbon.cc
pdns/misc.cc
pdns/misc.hh
pdns/rec-carbon.cc