Skip to content

Commit

Permalink
app-admin/fam: fix build w/newer glibc #580702
Browse files Browse the repository at this point in the history
  • Loading branch information
vapier committed Dec 7, 2016
1 parent 4b52ff3 commit d44615d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app-admin/fam/fam-2.7.0-r7.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ src_prepare() {
EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" epatch "${S}"/${P}/debian/patches
sed -i configure.ac -e 's|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|g' || die

epatch "${FILESDIR}"/${P}-sysmacros.patch #580702

eautoreconf
multilib_copy_sources
}
Expand Down
15 changes: 15 additions & 0 deletions app-admin/fam/files/fam-2.7.0-sysmacros.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
https://bugs.gentoo.org/580702

fix build with newer glibc where sys/sysmacros.h isn't implicitly included
by sys/types.h

--- a/src/DNotify.c++
+++ b/src/DNotify.c++
@@ -32,6 +32,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
+#include <sys/sysmacros.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <libgen.h>

0 comments on commit d44615d

Please sign in to comment.