diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-06-08 03:51:48 +0300 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-06-08 04:16:36 +0300 |
commit | d1d1cc983146ece950430da78ebae6f502913a53 (patch) | |
tree | 7c8433ce9255d3d1ba7cd7b1232d444b9a8ef7d9 /depends/patches/qt/fix_limits_header.patch | |
parent | e638acf6970394f8eb1957366ad2d39512f33b31 (diff) | |
download | bitcoin-d1d1cc983146ece950430da78ebae6f502913a53.tar.xz |
build, qt: Fix compiling qt package in depends with GCC 11
Diffstat (limited to 'depends/patches/qt/fix_limits_header.patch')
-rw-r--r-- | depends/patches/qt/fix_limits_header.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/depends/patches/qt/fix_limits_header.patch b/depends/patches/qt/fix_limits_header.patch new file mode 100644 index 0000000000..e4313770e5 --- /dev/null +++ b/depends/patches/qt/fix_limits_header.patch @@ -0,0 +1,44 @@ +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 <QtCore/qfloat16.h> + #include <QtCore/qglobal.h> + ++#include <limits> ++ + // include stdlib.h and hope that it defines __GLIBC__ for glibc-based systems + #include <stdlib.h> + #include <string.h> + +--- old/qtbase/src/corelib/tools/qbytearraymatcher.h ++++ new/qtbase/src/corelib/tools/qbytearraymatcher.h +@@ -42,6 +42,8 @@ + + #include <QtCore/qbytearray.h> + ++#include <limits> ++ + QT_BEGIN_NAMESPACE + + + +--- old/qtbase/src/tools/moc/generator.cpp ++++ new/qtbase/src/tools/moc/generator.cpp +@@ -40,6 +40,8 @@ + #include <QtCore/qplugin.h> + #include <QtCore/qstringview.h> + ++#include <limits> ++ + #include <math.h> + #include <stdio.h> + |