summaryrefslogtreecommitdiffstats
path: root/src/corelib/global
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/global')
-rw-r--r--src/corelib/global/qlogging.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/global/qlogging.cpp b/src/corelib/global/qlogging.cpp
index 6c545bb65f..2f3b5606f6 100644
--- a/src/corelib/global/qlogging.cpp
+++ b/src/corelib/global/qlogging.cpp
@@ -103,8 +103,8 @@ static int qt_gettid()
pthread_threadid_np(NULL, &tid);
return tid;
}
-#elif defined(Q_OS_FREEBSD_KERNEL)
-# include <pthread.h>
+#elif defined(Q_OS_FREEBSD_KERNEL) && defined(__FreeBSD_version) && __FreeBSD_version >= 900031
+# include <pthread_np.h>
static int qt_gettid()
{
return pthread_getthreadid_np();