media-libs/xine-lib: fix build w/newer glibc #580012
authorMike Frysinger <vapier@gentoo.org>
Sun, 27 Nov 2016 23:41:11 +0000 (18:41 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sun, 27 Nov 2016 23:43:01 +0000 (18:43 -0500)
media-libs/xine-lib/files/xine-lib-1.2.6-sysmacros.patch [new file with mode: 0644]
media-libs/xine-lib/xine-lib-1.2.6-r1.ebuild

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 (file)
index 0000000..a7168d5
--- /dev/null
@@ -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>
index 38f2b649654d01dfb263251945e2d2a132b03c9c..1acf133ad1bc75d1896414468bd302d9e964c12f 100644 (file)
@@ -118,6 +118,7 @@ REQUIRED_USE="vidix? ( || ( X fbcon ) )
 
 PATCHES=(
        "${FILESDIR}/${P}-libxcb-1.12.patch"
+       "${FILESDIR}/${P}-sysmacros.patch"
 )
 
 src_prepare() {