app-emulation/qemu-guest-agent: fix build w/newer glibc #580924
authorMike Frysinger <vapier@gentoo.org>
Sat, 23 Apr 2016 17:20:23 +0000 (13:20 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sat, 23 Apr 2016 17:20:23 +0000 (13:20 -0400)
app-emulation/qemu-guest-agent/files/qemu-guest-agent-2.5.0-sysmacros.patch [new file with mode: 0644]
app-emulation/qemu-guest-agent/qemu-guest-agent-2.5.0.ebuild

diff --git a/app-emulation/qemu-guest-agent/files/qemu-guest-agent-2.5.0-sysmacros.patch b/app-emulation/qemu-guest-agent/files/qemu-guest-agent-2.5.0-sysmacros.patch
new file mode 100644 (file)
index 0000000..4d5690c
--- /dev/null
@@ -0,0 +1,17 @@
+https://bugs.gentoo.org/580924
+
+Linux C libs are moving away from implicit header pollution with sys/types.h
+
+--- a/include/qemu/osdep.h
++++ b/include/qemu/osdep.h
+@@ -78,6 +78,10 @@ extern int daemon(int, int);
+ #include <assert.h>
+ #include <signal.h>
++#ifdef __linux__
++#include <sys/sysmacros.h>
++#endif
++
+ #ifdef __OpenBSD__
+ #include <sys/signal.h>
+ #endif
index 55893ad7e24287b9beec60da80747a574ba63a3b..0031ca90047df15a4c39974dfd413ad2c138ab56 100644 (file)
@@ -35,6 +35,7 @@ DEPEND="${RDEPEND}
 S="${WORKDIR}/${MY_P}"
 
 src_prepare() {
+       epatch "${FILESDIR}"/${PN}-2.5.0-sysmacros.patch #580924
        epatch_user
 }