Gentoo-Bug: https://bugs.gentoo.org/598284
Closes: https://github.com/gentoo/gentoo/pull/2847
--- /dev/null
+diff --git a/src/av-cp/playlist-treeview.h b/src/av-cp/playlist-treeview.h
+index 8637ae8..16b131e 100644
+--- a/src/av-cp/playlist-treeview.h
++++ b/src/av-cp/playlist-treeview.h
+@@ -23,6 +23,8 @@
+
+ #include <config.h>
+ #include <gtk/gtk.h>
++
++#include <libgupnp/gupnp.h>
+ #include <libgupnp-av/gupnp-av.h>
EAPI="5"
GCONF_DEBUG="no"
-inherit gnome2
+inherit gnome2 eutils
DESCRIPTION="Free replacements of Intel UPnP tools that use GUPnP"
HOMEPAGE="https://wiki.gnome.org/Projects/GUPnP"
sys-devel/gettext
virtual/pkgconfig
"
+
+src_prepare() {
+ # Fixes 598284 with upstream patch
+ # https://git.gnome.org/browse/gupnp-tools/commit/?id=e9ec9634207e4c2eea6d268ee29b57e687c1f178
+ epatch "${FILESDIR}"/${PN}-fix-compiling-when-using-recent-gupnp-av.patch
+ gnome2_src_prepare
+}
+
>=sys-devel/gettext-0.19.7
virtual/pkgconfig
"
+
+# Fixes 598284 with upstream patch
+# https://git.gnome.org/browse/gupnp-tools/commit/?id=e9ec9634207e4c2eea6d268ee29b57e687c1f178
+PATCHES=( "${FILESDIR}/${PN}-fix-compiling-when-using-recent-gupnp-av.patch" )