summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/corelib/thread/qthread_unix.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/corelib/thread/qthread_unix.cpp b/src/corelib/thread/qthread_unix.cpp
index f53605367d7..00d2b87b7ea 100644
--- a/src/corelib/thread/qthread_unix.cpp
+++ b/src/corelib/thread/qthread_unix.cpp
@@ -348,7 +348,9 @@ static void setCurrentThreadName(QThread *thr, String &objectName)
prctl(PR_SET_NAME, name);
# elif defined(Q_OS_DARWIN)
pthread_setname_np(name);
-# elif defined(Q_OS_QNX)
+# elif defined(Q_OS_OPENBSD)
+ pthread_set_name_np(pthread_self(), name);
+# elif defined(Q_OS_QNX) || defined(Q_OS_BSD4)
pthread_setname_np(pthread_self(), name);
# else
Q_UNUSED(name)