summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIvan Solovev <ivan.solovev@qt.io>2023-07-18 11:22:55 +0200
committerIvan Solovev <ivan.solovev@qt.io>2023-07-18 15:53:07 +0200
commit7a33a08376a30bb7b788cafc2343378131fd1e8d (patch)
treeb344a6cbfb583138d6c7fb44eaac6aa3c6c87e5c /src
parentd6dacfecb1add4bfd3e4d0aeea5047dd95206588 (diff)
QSemaphore: add missing <chrono> include
std::chrono is still used in the header. Do not rely on transitive includes, instead include the header explicitly. Pick-to: 6.6 Change-Id: I2cf5dc275c3272151efd655a4fa85936942c5708 Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/corelib/thread/qsemaphore.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/thread/qsemaphore.h b/src/corelib/thread/qsemaphore.h
index 28f3f626649..dda722a5823 100644
--- a/src/corelib/thread/qsemaphore.h
+++ b/src/corelib/thread/qsemaphore.h
@@ -7,6 +7,8 @@
#include <QtCore/qglobal.h>
#include <QtCore/qdeadlinetimer.h>
+#include <chrono>
+
QT_REQUIRE_CONFIG(thread);
QT_BEGIN_NAMESPACE