sys-process/atop: fix build w/newer glibc #580372

This commit is contained in:
Mike Frysinger
2016-04-19 18:33:35 -04:00
parent b10dc1b683
commit dd07e099f6
2 changed files with 15 additions and 0 deletions

View File

@@ -31,6 +31,7 @@ S=${WORKDIR}/${MY_P}
src_prepare() {
epatch "${FILESDIR}"/${PN}-2.2-build.patch
epatch "${FILESDIR}"/${PN}-2.2-sysmacros.patch #580372
tc-export CC PKG_CONFIG
sed -i 's: root : :' atop.cronsysv || die #191926
# prefixify

View File

@@ -0,0 +1,14 @@
https://bugs.gentoo.org/580372
include sys/sysmacros.h for major/minor prototypes
--- a/photosyst.c
+++ b/photosyst.c
@@ -164,6 +164,7 @@
#include <signal.h>
#include <string.h>
#include <dirent.h>
+#include <sys/sysmacros.h>
#include <sys/socket.h>
#include <netinet/in.h>