x11-drivers/xf86-video-virtualbox: fix bug 579910
authorKacper Kołodziej <kacper@kolodziej.in>
Wed, 14 Jun 2017 20:06:17 +0000 (22:06 +0200)
committerLars Wendler <polynomial-c@gentoo.org>
Sun, 25 Jun 2017 20:02:01 +0000 (22:02 +0200)
Package-Manager: Portage-2.3.6, Repoman-2.3.2
Closes: https://github.com/gentoo/gentoo/pull/4932

x11-drivers/xf86-video-virtualbox/files/xf86-video-virtualbox-5.1.22-sysmacros.patch [new file with mode: 0644]
x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-5.1.22.ebuild

diff --git a/x11-drivers/xf86-video-virtualbox/files/xf86-video-virtualbox-5.1.22-sysmacros.patch b/x11-drivers/xf86-video-virtualbox/files/xf86-video-virtualbox-5.1.22-sysmacros.patch
new file mode 100644 (file)
index 0000000..673beef
--- /dev/null
@@ -0,0 +1,15 @@
+Fix bug #579910. Add sys/sysmacros.h header.
+
+https://bugs.gentoo.org/579910
+
+index 20ae130..2f3fac0 100644
+--- a/src/VBox/Runtime/r3/linux/sysfs.cpp
++++ b/src/VBox/Runtime/r3/linux/sysfs.cpp
+@@ -46,6 +46,7 @@
+ #include <sys/sysctl.h>
+ #include <sys/stat.h>
+ #include <sys/fcntl.h>
++#include <sys/sysmacros.h>
+ #include <errno.h>
+ 
+ 
index cb90ffc4122e4661b32180571f78a575a553bc7a..31448eb0c1aa07d080dfdb2da72313a7fb5937ba 100644 (file)
@@ -58,6 +58,9 @@ PATCHES=(
 
        # xorg-1.19 patch from opensuse (bug #602784)
        "${FILESDIR}/${PN}-5.1.10-xorg119.patch"
+
+       # fix bug #579946
+       "${FILESDIR}/${PN}-5.1.22-sysmacros.patch"
 )
 
 QA_TEXTRELS_x86="usr/lib/VBoxOGL.so"