From 684c9b82b9b8216f406c59deb35cd727ffb6d69b Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Tue, 28 Sep 2021 17:10:11 -0700 Subject: QDateTime: fix build with MinGW: need unistd.h very early qobject.h has #include , which #includes , which includes . datetime.cpp:2621:23: error: 'localtime_r' was not declared in this scope; did you mean 'localtime_s'? Pick-to: 6.2 Change-Id: I2bbf422288924c198645fffd16a922719c4ce7d4 Reviewed-by: Edward Welbourne --- mkspecs/win32-g++/qplatformdefs.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mkspecs/win32-g++') diff --git a/mkspecs/win32-g++/qplatformdefs.h b/mkspecs/win32-g++/qplatformdefs.h index c5a70b1445..e9ced3732a 100644 --- a/mkspecs/win32-g++/qplatformdefs.h +++ b/mkspecs/win32-g++/qplatformdefs.h @@ -46,6 +46,8 @@ #endif #endif +#include // Defines _POSIX_THREAD_SAFE_FUNCTIONS and others + // Get Qt defines/settings #include "qglobal.h" -- cgit v1.2.3