]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
thread names: fix building on FreeBSD
authorPieter Lexis <pieter.lexis@powerdns.com>
Fri, 28 Sep 2018 10:04:43 +0000 (12:04 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Fri, 28 Sep 2018 10:04:43 +0000 (12:04 +0200)
pdns/threadname.cc

index e20c013fc2c4968afe6bd58c8b72043b51fda640..eaa47b7fcd3faea59cff67c128307084b2898cae 100644 (file)
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 #include <string.h>
+
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
+
 #include <pthread.h>
+
+#if HAVE_PTHREAD_NP_H
+#include <pthread_np.h>
+#endif
+
 #ifdef DNSDIST
 #include "dolog.hh"
 #else
 #include "logger.hh"
 #endif
+
 #include "threadname.hh"
 
 void setThreadName(const std::string& threadName) {