summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--media-libs/zimg/files/zimg-2.9.2-gcc-10.patch18
-rw-r--r--media-libs/zimg/zimg-2.9.2.ebuild2
2 files changed, 20 insertions, 0 deletions
diff --git a/media-libs/zimg/files/zimg-2.9.2-gcc-10.patch b/media-libs/zimg/files/zimg-2.9.2-gcc-10.patch
new file mode 100644
index 000000000000..ea192f77fcad
--- /dev/null
+++ b/media-libs/zimg/files/zimg-2.9.2-gcc-10.patch
@@ -0,0 +1,18 @@
+https://bugs.gentoo.org/721676
+
+From 9ae36d7d5f7420eaacd9644451933512fa13d716 Mon Sep 17 00:00:00 2001
+From: sekrit-twc <sekrit-twc@users.noreply.github.com>
+Date: Wed, 4 Dec 2019 12:01:26 -0800
+Subject: [PATCH] Update matrix3.cpp
+
+---
+ src/zimg/colorspace/matrix3.cpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/src/zimg/colorspace/matrix3.cpp
++++ b/src/zimg/colorspace/matrix3.cpp
+@@ -1,3 +1,4 @@
++#include <cstddef>
+ #include "matrix3.h"
+
+ namespace zimg {
diff --git a/media-libs/zimg/zimg-2.9.2.ebuild b/media-libs/zimg/zimg-2.9.2.ebuild
index c1295123848e..e962d7a4b5f7 100644
--- a/media-libs/zimg/zimg-2.9.2.ebuild
+++ b/media-libs/zimg/zimg-2.9.2.ebuild
@@ -20,6 +20,8 @@ LICENSE="WTFPL-2"
SLOT="0"
IUSE="cpu_flags_x86_sse debug static-libs"
+PATCHES=("${FILESDIR}"/${PN}-2.9.2-gcc-10.patch)
+
src_prepare() {
default
eautoreconf