diff --git a/src/tl/tl/tlThreads.cc b/src/tl/tl/tlThreads.cc index 19ff4fa77..f1000d8c0 100644 --- a/src/tl/tl/tlThreads.cc +++ b/src/tl/tl/tlThreads.cc @@ -29,7 +29,7 @@ #include -#if defined(HAVE_PTHREADS) +#if !defined(HAVE_QT) || defined(HAVE_PTHREADS) #define _TIMESPEC_DEFINED // avoids errors with pthread-win and MSVC2017 #include @@ -233,7 +233,7 @@ void WaitCondition::wakeOne () // ------------------------------------------------------------------------------- // Thread implementation -#if !(defined(HAVE_QT) && !defined(HAVE_PTHREADS)) +#if !defined(HAVE_QT) || defined(HAVE_PTHREADS) class ThreadPrivateData {