Fix compiling with GCC 11 See: https://bugreports.qt.io/browse/QTBUG-90395. Upstream commits: - Qt 5.15 -- unavailable as open source - Qt 6.0: b2af6332ea37e45ab230a7a5d2d278f86d961b83 - Qt 6.1: 9c56d4da2ff631a8c1c30475bd792f6c86bda53c --- old/qtbase/src/corelib/global/qendian.h +++ new/qtbase/src/corelib/global/qendian.h @@ -44,6 +44,8 @@ #include #include +#include + // include stdlib.h and hope that it defines __GLIBC__ for glibc-based systems #include #include --- old/qtbase/src/corelib/global/qfloat16.h +++ new/qtbase/src/corelib/global/qfloat16.h @@ -43,6 +43,7 @@ #include #include +#include #include #if defined(QT_COMPILER_SUPPORTS_F16C) && defined(__AVX2__) && !defined(__F16C__) --- old/qtbase/src/tools/moc/generator.cpp +++ new/qtbase/src/tools/moc/generator.cpp @@ -40,6 +40,8 @@ #include #include +#include + #include #include --- old/qtbase/src/corelib/text/qbytearraymatcher.h +++ new/qtbase/src/corelib/text/qbytearraymatcher.h @@ -42,6 +42,8 @@ #include +#include + QT_BEGIN_NAMESPACE --- old/qtbase/src/corelib/tools/qoffsetstringarray_p.h +++ new/qtbase/src/corelib/tools/qoffsetstringarray_p.h @@ -55,6 +55,7 @@ #include #include +#include QT_BEGIN_NAMESPACE