mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-23 16:49:10 -07:00
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:
24
kde-misc/kdiff3/files/kdiff3-1.9.0-gcc11.patch
Normal file
24
kde-misc/kdiff3/files/kdiff3-1.9.0-gcc11.patch
Normal 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
|
||||
|
||||
@@ -39,3 +39,5 @@ DEPEND="${COMMON_DEPEND}
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
sys-apps/diffutils
|
||||
"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${P}-gcc11.patch" ) # bug 788058, git master
|
||||
|
||||
Reference in New Issue
Block a user