sys-apps/usermode-utilities: fix build w/newer glibc #580816

This commit is contained in:
Felix Janda
2016-11-27 18:56:04 -05:00
committed by Mike Frysinger
parent 1a3287d53e
commit 5a7c2b8a02
2 changed files with 29 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
https://bugs.gentoo.org/580816
include headers needed by targets
--- b/tools-20070815/uml_net/ethertap.c
+++ a/tools-20070815/uml_net/ethertap.c
@@ -13,6 +13,7 @@
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <net/if.h>
+#include <sys/select.h>
#include "host.h"
#include "output.h"
for major/minor macros
--- b/tools-20070815/uml_net/host.c
+++ a/tools-20070815/uml_net/host.c
@@ -10,6 +10,7 @@
#include <ctype.h>
#include <sys/wait.h>
#include <sys/stat.h>
+#include <sys/sysmacros.h>
#include "output.h"
#include "host.h"

View File

@@ -26,6 +26,8 @@ src_prepare() {
epatch "${FILESDIR}"/${P}-rollup.patch
# Fix owner of humfsify; bug #364531
epatch "${FILESDIR}"/${P}-humfsify-owner.patch
epatch "${FILESDIR}"/${P}-headers.patch #580816
sed -i -e 's:-o \$(BIN):$(LDFLAGS) -o $(BIN):' "${S}"/*/Makefile || die "LDFLAGS sed failed"
sed -i -e 's:-o \$@:$(LDFLAGS) -o $@:' "${S}"/moo/Makefile || die "LDFLAGS sed (moo) failed"
if ! use fuse; then