summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-11-27 18:41:11 -0500
committerMike Frysinger <vapier@gentoo.org>2016-11-27 18:43:01 -0500
commit42c946fd3b81136b633882884a8e47abc49c706e (patch)
tree489d5ac31158c284e8eb3239cbf304005fa694b5 /media-libs
parentnet-misc/netifrc: Update RDEPEND (diff)
downloadgentoo-42c946fd3b81136b633882884a8e47abc49c706e.tar.gz
gentoo-42c946fd3b81136b633882884a8e47abc49c706e.tar.bz2
gentoo-42c946fd3b81136b633882884a8e47abc49c706e.zip
media-libs/xine-lib: fix build w/newer glibc #580012
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/xine-lib/files/xine-lib-1.2.6-sysmacros.patch15
-rw-r--r--media-libs/xine-lib/xine-lib-1.2.6-r1.ebuild1
2 files changed, 16 insertions, 0 deletions
diff --git a/media-libs/xine-lib/files/xine-lib-1.2.6-sysmacros.patch b/media-libs/xine-lib/files/xine-lib-1.2.6-sysmacros.patch
new file mode 100644
index 000000000000..a7168d5b4506
--- /dev/null
+++ b/media-libs/xine-lib/files/xine-lib-1.2.6-sysmacros.patch
@@ -0,0 +1,15 @@
+fix build w/newer glibc due to major/minor includes being dropped from sys/types.h
+
+https://bugs.gentoo.org/580012
+https://bugs.xine-project.org/show_bug.cgi?id=574
+
+--- a/src/xine-utils/xine_check.c
++++ b/src/xine-utils/xine_check.c
+@@ -55,6 +55,7 @@
+ #include <dlfcn.h>
+ #include <sys/stat.h>
+ #include <sys/ioctl.h>
++#include <sys/sysmacros.h>
+ #include <sys/utsname.h>
+ #include <linux/major.h>
+ #include <linux/hdreg.h>
diff --git a/media-libs/xine-lib/xine-lib-1.2.6-r1.ebuild b/media-libs/xine-lib/xine-lib-1.2.6-r1.ebuild
index 38f2b649654d..1acf133ad1bc 100644
--- a/media-libs/xine-lib/xine-lib-1.2.6-r1.ebuild
+++ b/media-libs/xine-lib/xine-lib-1.2.6-r1.ebuild
@@ -118,6 +118,7 @@ REQUIRED_USE="vidix? ( || ( X fbcon ) )
PATCHES=(
"${FILESDIR}/${P}-libxcb-1.12.patch"
+ "${FILESDIR}/${P}-sysmacros.patch"
)
src_prepare() {