From: Pieter Lexis Date: Fri, 28 Sep 2018 13:29:24 +0000 (+0200) Subject: threadname: fix for netbsd X-Git-Tag: dnsdist-1.3.3~68^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F6997%2Fhead;p=thirdparty%2Fpdns.git threadname: fix for netbsd --- diff --git a/pdns/threadname.cc b/pdns/threadname.cc index eaa47b7fcd..249248a623 100644 --- a/pdns/threadname.cc +++ b/pdns/threadname.cc @@ -55,7 +55,7 @@ void setThreadName(const std::string& threadName) { retval = pthread_setname_np(threadName.c_str()); #endif #ifdef HAVE_PTHREAD_SETNAME_NP_3 - retval = pthread_setname_np(pthread_self(), threadname.c_str(), nullptr); + retval = pthread_setname_np(pthread_self(), threadName.c_str(), nullptr); #endif if (retval != 0) {