Blame SOURCES/0006-Include-limits-in-Yarr.h-to-fix-build-with-GCC-11.patch

966857
From 3c42d4d3dce95b67d65541c5612384eab0c3e27b Mon Sep 17 00:00:00 2001
966857
From: Dmitry Shachnev <mitya57@gmail.com>
966857
Date: Wed, 18 Aug 2021 22:50:29 +0300
966857
Subject: [PATCH 06/20] Include <limits> in Yarr.h to fix build with GCC 11
966857
MIME-Version: 1.0
966857
Content-Type: text/plain; charset=UTF-8
966857
Content-Transfer-Encoding: 8bit
966857
966857
- <limits.h> (aka <climits>) is needed for UINT_MAX macro constant.
966857
- <limits> is needed for std::numeric_limits.
966857
966857
Without this fix, qtdeclarative failed to build on some platforms:
966857
966857
 In file included from jsruntime/qv4regexp_p.h:62,
966857
                  from jsruntime/qv4regexp.cpp:40:
966857
 ../3rdparty/masm/yarr/Yarr.h:46:44: error: ‘numeric_limits’ is not a member of ‘std’
966857
    46 | static const unsigned offsetNoMatch = std::numeric_limits<unsigned>::max();
966857
       |                                            ^~~~~~~~~~~~~~
966857
966857
Pick-to: 5.15 6.2
966857
Change-Id: I7cc9f7bc6624a52c8659f09034ab16064da5fd2f
966857
Reviewed-by: Albert Astals Cid <albert.astals.cid@kdab.com>
966857
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
966857
(cherry picked from commit db58b8518e157b765bf2e01e6382a9eed4751f27)
966857
---
966857
 src/3rdparty/masm/yarr/Yarr.h | 1 +
966857
 1 file changed, 1 insertion(+)
966857
966857
diff --git a/src/3rdparty/masm/yarr/Yarr.h b/src/3rdparty/masm/yarr/Yarr.h
966857
index ccf78f9880..2955ea7e72 100644
966857
--- a/src/3rdparty/masm/yarr/Yarr.h
966857
+++ b/src/3rdparty/masm/yarr/Yarr.h
966857
@@ -28,6 +28,7 @@
966857
 #pragma once
966857
 
966857
 #include <limits.h>
966857
+#include <limits>
966857
 #include "YarrErrorCode.h"
966857
 
966857
 namespace JSC { namespace Yarr {
966857
-- 
966857
2.35.1
966857