Skip to content

Commit

Permalink
sys-apps/findutils: make sys/sysmacros.h include more portable #577714
Browse files Browse the repository at this point in the history
  • Loading branch information
vapier committed Mar 21, 2016
1 parent f2dd066 commit 4c756a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sys-apps/findutils/findutils-4.6.0.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ src_prepare() {

# Newer C libraries omit this include from sys/types.h.
# https://lists.gnu.org/archive/html/bug-gnulib/2016-03/msg00018.html
sed -i '1i#include <sys/sysmacros.h>' gl/lib/mountlist.c || die
sed -i \
'/include.*config.h/a#ifdef MAJOR_IN_SYSMACROS\n#include <sys/sysmacros.h>\n#endif\n' \
gl/lib/mountlist.c || die

epatch "${FILESDIR}"/${P}-gnulib-mb.patch #576818
}
Expand Down

0 comments on commit 4c756a9

Please sign in to comment.