diff options
author | Mike Frysinger <vapier@gentoo.org> | 2016-03-21 19:32:12 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2016-03-21 19:35:40 -0400 |
commit | 4c756a9cfd0ac273013fe0934d46c324f546ac36 (patch) | |
tree | 894c3b3c901db90999444a0ca6d3aeb4d53aaf56 /sys-apps | |
parent | app-backup/rear: add libressl support (diff) | |
download | gentoo-4c756a9cfd0ac273013fe0934d46c324f546ac36.tar.gz gentoo-4c756a9cfd0ac273013fe0934d46c324f546ac36.tar.bz2 gentoo-4c756a9cfd0ac273013fe0934d46c324f546ac36.zip |
sys-apps/findutils: make sys/sysmacros.h include more portable #577714
Diffstat (limited to 'sys-apps')
-rw-r--r-- | sys-apps/findutils/findutils-4.6.0.ebuild | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys-apps/findutils/findutils-4.6.0.ebuild b/sys-apps/findutils/findutils-4.6.0.ebuild index d24e3af45e77..34539177b787 100644 --- a/sys-apps/findutils/findutils-4.6.0.ebuild +++ b/sys-apps/findutils/findutils-4.6.0.ebuild @@ -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 } |