summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-04-19 02:10:15 -0400
committerMike Frysinger <vapier@gentoo.org>2016-04-19 02:10:15 -0400
commitbbf68d4424a50b48752768593401dee774044295 (patch)
treea23c1c9613ce81f69273bbb556d514264cf21fc7 /sys-fs/jfsutils
parentsys-fs/jfsutils: document linux-headers patch (diff)
downloadgentoo-bbf68d4424a50b48752768593401dee774044295.tar.gz
gentoo-bbf68d4424a50b48752768593401dee774044295.tar.bz2
gentoo-bbf68d4424a50b48752768593401dee774044295.zip
sys-fs/jfsutils: fix building w/newer glibc #580056
Diffstat (limited to 'sys-fs/jfsutils')
-rw-r--r--sys-fs/jfsutils/files/jfsutils-1.1.15-sysmacros.patch15
-rw-r--r--sys-fs/jfsutils/jfsutils-1.1.15.ebuild1
2 files changed, 16 insertions, 0 deletions
diff --git a/sys-fs/jfsutils/files/jfsutils-1.1.15-sysmacros.patch b/sys-fs/jfsutils/files/jfsutils-1.1.15-sysmacros.patch
new file mode 100644
index 00000000000..82f9d632ac5
--- /dev/null
+++ b/sys-fs/jfsutils/files/jfsutils-1.1.15-sysmacros.patch
@@ -0,0 +1,15 @@
+https://bugs.gentoo.org/580056
+
+--- a/libfs/devices.c
++++ b/libfs/devices.c
+@@ -30,6 +30,10 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+
++#if HAVE_SYS_SYSMACROS_H
++#include <sys/sysmacros.h>
++#endif
++
+ #ifdef HAVE_SYS_MOUNT_H
+ #ifdef HAVE_SYS_PARAM_H
+ #include <sys/param.h>
diff --git a/sys-fs/jfsutils/jfsutils-1.1.15.ebuild b/sys-fs/jfsutils/jfsutils-1.1.15.ebuild
index ff4059d7656..c839a51d52a 100644
--- a/sys-fs/jfsutils/jfsutils-1.1.15.ebuild
+++ b/sys-fs/jfsutils/jfsutils-1.1.15.ebuild
@@ -19,6 +19,7 @@ DOCS=( AUTHORS ChangeLog NEWS README )
src_prepare() {
epatch "${FILESDIR}"/${P}-linux-headers.patch #448844
+ epatch "${FILESDIR}"/${P}-sysmacros.patch #580056
}
src_configure() {