kde-misc/kdiff3: Fix build with GCC-11

See also: https://invent.kde.org/sdk/kdiff3/-/merge_requests/28

Upstream commit 0476b1daa73159aec411c7f10da6f313294f0e38

Thanks-to: Holger Hoffstätte <holger@applied-asynchrony.com>
Closes: https://bugs.gentoo.org/788058
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
Andreas Sturmlechner
2021-05-04 23:41:32 +02:00
parent 03d4a425cb
commit 3812549fca
2 changed files with 26 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
From 0476b1daa73159aec411c7f10da6f313294f0e38 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Holger=20Hoffst=C3=A4tte?= <holger@applied-asynchrony.com>
Date: Tue, 4 May 2021 19:21:46 +0200
Subject: [PATCH] Explicitly include <limits> for compatibility with gcc-11
---
src/TypeUtils.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/TypeUtils.h b/src/TypeUtils.h
index c072681..f0ab9c2 100644
--- a/src/TypeUtils.h
+++ b/src/TypeUtils.h
@@ -9,6 +9,7 @@
#include <stdlib.h>
#include <type_traits>
+#include <limits>
#include <QtGlobal>
--
GitLab

View File

@@ -39,3 +39,5 @@ DEPEND="${COMMON_DEPEND}
RDEPEND="${COMMON_DEPEND}
sys-apps/diffutils
"
PATCHES=( "${FILESDIR}/${P}-gcc11.patch" ) # bug 788058, git master