sys-apps/sysvinit: fix building w/newer glibc
authorMike Frysinger <vapier@gentoo.org>
Mon, 7 Mar 2016 19:05:18 +0000 (14:05 -0500)
committerMike Frysinger <vapier@gentoo.org>
Mon, 7 Mar 2016 19:05:27 +0000 (14:05 -0500)
sys-apps/sysvinit/files/sysvinit-2.88-sysmacros.patch [new file with mode: 0644]
sys-apps/sysvinit/sysvinit-2.88-r9.ebuild

diff --git a/sys-apps/sysvinit/files/sysvinit-2.88-sysmacros.patch b/sys-apps/sysvinit/files/sysvinit-2.88-sysmacros.patch
new file mode 100644 (file)
index 0000000..efbe47a
--- /dev/null
@@ -0,0 +1,12 @@
+Newer C libraries omit this include from sys/types.h.
+
+--- a/src/bootlogd.c
++++ b/src/bootlogd.c
+@@ -32,6 +32,7 @@
+  *
+  */
+ 
++#include <sys/sysmacros.h>
+ #include <sys/types.h>
+ #include <sys/time.h>
+ #include <sys/stat.h>
index a6b30a3ee304ede5e8266cc336c2be392917e934..d2bad7b80d45b9d23b578d46d5f1505c1f8361a0 100644 (file)
@@ -33,6 +33,7 @@ PATCHES=(
        "${FILESDIR}/${P}-makefile.patch" #319197
        "${FILESDIR}/${P}-selinux.patch" #326697
        "${FILESDIR}/${P}-shutdown-h.patch" #449354
+       "${FILESDIR}/${PN}-2.88-sysmacros.patch"
 )
 
 src_prepare() {