summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'x11-terms')
-rw-r--r--x11-terms/zutty/files/zutty-0.8-gcc11.patch24
-rw-r--r--x11-terms/zutty/zutty-0.8.ebuild2
2 files changed, 26 insertions, 0 deletions
diff --git a/x11-terms/zutty/files/zutty-0.8-gcc11.patch b/x11-terms/zutty/files/zutty-0.8-gcc11.patch
new file mode 100644
index 000000000000..75b8234d24bf
--- /dev/null
+++ b/x11-terms/zutty/files/zutty-0.8-gcc11.patch
@@ -0,0 +1,24 @@
+From 75bffab09e842bfff56a6cf111360421a5ee9e15 Mon Sep 17 00:00:00 2001
+From: Matt Smith <matt@offtopica.uk>
+Date: Thu, 29 Apr 2021 19:23:00 +0100
+Subject: [PATCH] Add missing include to fix GCC 11 build
+
+---
+ src/font.cc | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/font.cc b/src/font.cc
+index 0dd2166..f8da582 100644
+--- a/src/font.cc
++++ b/src/font.cc
+@@ -15,6 +15,7 @@
+
+ #include <algorithm>
+ #include <cmath>
++#include <limits>
+ #include <sstream>
+ #include <stdexcept>
+ #include <string>
+--
+2.31.1
+
diff --git a/x11-terms/zutty/zutty-0.8.ebuild b/x11-terms/zutty/zutty-0.8.ebuild
index d4ab66148fff..092145007655 100644
--- a/x11-terms/zutty/zutty-0.8.ebuild
+++ b/x11-terms/zutty/zutty-0.8.ebuild
@@ -26,4 +26,6 @@ DEPEND="
RDEPEND="${COMMON_DEPEND}"
BDEPEND="virtual/pkgconfig"
+PATCHES=( "${FILESDIR}"/${PN}-0.8-gcc11.patch )
+
DOCS=( doc/KEYS.org doc/USAGE.org )