summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoerg Bornkessel <hd_brummy@gentoo.org>2021-05-02 19:27:49 +0200
committerJoerg Bornkessel <hd_brummy@gentoo.org>2021-05-02 19:53:50 +0200
commit1a3e2e10ee08b2df5db3bc83628584cc25b88d5a (patch)
tree7674a7b1850b6109880fd1d21805f3179f40cd12
parentmedia-plugins/vdr-sleeptimer: tc-directly call fixed (diff)
downloadgentoo-1a3e2e10ee08b2df5db3bc83628584cc25b88d5a.tar.gz
gentoo-1a3e2e10ee08b2df5db3bc83628584cc25b88d5a.tar.bz2
gentoo-1a3e2e10ee08b2df5db3bc83628584cc25b88d5a.zip
media-plugins/vdr-suspendoutput: gcc-11 compile fix
max was not declared eapi 7 Closes: https://bugs.gentoo.org/787506 Package-Manager: Portage-3.0.18, Repoman-3.0.2 Signed-off-by: Joerg Bornkessel <hd_brummy@gentoo.org>
-rw-r--r--media-plugins/vdr-suspendoutput/vdr-suspendoutput-2.0.1-r1.ebuild (renamed from media-plugins/vdr-suspendoutput/vdr-suspendoutput-2.0.1.ebuild)7
1 files changed, 5 insertions, 2 deletions
diff --git a/media-plugins/vdr-suspendoutput/vdr-suspendoutput-2.0.1.ebuild b/media-plugins/vdr-suspendoutput/vdr-suspendoutput-2.0.1-r1.ebuild
index 5ccea9a17a6..5922d4a200a 100644
--- a/media-plugins/vdr-suspendoutput/vdr-suspendoutput-2.0.1.ebuild
+++ b/media-plugins/vdr-suspendoutput/vdr-suspendoutput-2.0.1-r1.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=7
inherit vdr-plugin-2
@@ -24,4 +24,7 @@ src_prepare() {
sed -e 246c"unsigned int TimeoutMs, bool runOnce)" \
-e 254c"unsigned int TimeoutMs, bool runOnce)" \
-i timer.h
+
+ # gcc-11, bug 787506
+ sed -e "s|max|std::max|" -i timer.c
}