From: Pieter Lexis Date: Fri, 28 Sep 2018 10:04:43 +0000 (+0200) Subject: thread names: fix building on FreeBSD X-Git-Tag: dnsdist-1.3.3~68^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=72a77856a4245df80be09509e785429bb2b6319c;p=thirdparty%2Fpdns.git thread names: fix building on FreeBSD --- diff --git a/pdns/threadname.cc b/pdns/threadname.cc index e20c013fc2..eaa47b7fcd 100644 --- a/pdns/threadname.cc +++ b/pdns/threadname.cc @@ -20,15 +20,23 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include + #ifdef HAVE_CONFIG_H #include "config.h" #endif + #include + +#if HAVE_PTHREAD_NP_H +#include +#endif + #ifdef DNSDIST #include "dolog.hh" #else #include "logger.hh" #endif + #include "threadname.hh" void setThreadName(const std::string& threadName) {