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 +#elif defined(Q_OS_FREEBSD_KERNEL) && defined(__FreeBSD_version) && __FreeBSD_version >= 900031 +# include static int qt_gettid() { return pthread_getthreadid_np();