From 72a77856a4245df80be09509e785429bb2b6319c Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Fri, 28 Sep 2018 12:04:43 +0200 Subject: [PATCH] thread names: fix building on FreeBSD --- pdns/threadname.cc | 8 ++++++++ 1 file changed, 8 insertions(+) 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) { -- 2.47.2