summaryrefslogtreecommitdiff
path: root/sys-process/psmisc
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-03-07 15:42:27 -0500
committerMike Frysinger <vapier@gentoo.org>2016-03-07 15:43:13 -0500
commitea403ac55a029c8eacb076269d86bd136ef3eb71 (patch)
tree378da14034f4d80a9b0a4076b0ee4852c62a22d4 /sys-process/psmisc
parentf656a542c442a27c8230b350a9c288377469aa0e (diff)
downloadgentoo-ea403ac55a029c8eacb076269d86bd136ef3eb71.tar.gz
gentoo-ea403ac55a029c8eacb076269d86bd136ef3eb71.tar.xz
sys-process/psmisc: fix building w/newer glibc
Diffstat (limited to 'sys-process/psmisc')
-rw-r--r--sys-process/psmisc/files/psmisc-22.21-sysmacros.patch26
-rw-r--r--sys-process/psmisc/psmisc-22.21-r2.ebuild1
2 files changed, 27 insertions, 0 deletions
diff --git a/sys-process/psmisc/files/psmisc-22.21-sysmacros.patch b/sys-process/psmisc/files/psmisc-22.21-sysmacros.patch
new file mode 100644
index 00000000000..440c5e62e7e
--- /dev/null
+++ b/sys-process/psmisc/files/psmisc-22.21-sysmacros.patch
@@ -0,0 +1,26 @@
+From 367886e1c49238d1a02721f849564d77a163465b Mon Sep 17 00:00:00 2001
+From: Mike Frysinger <vapier@gentoo.org>
+Date: Mon, 7 Mar 2016 14:52:22 -0500
+Subject: [PATCH] fuser: include sysmacros.h for makedev
+
+BSD/Linux define makedev in the sysmacros.h header. Include it directly
+instead of relying on types.h pulling it in for us.
+---
+ src/fuser.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/fuser.c b/src/fuser.c
+index da94d22..380046f 100644
+--- a/src/fuser.c
++++ b/src/fuser.c
+@@ -36,6 +36,7 @@
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <sys/socket.h>
++#include <sys/sysmacros.h>
+ #include <sys/wait.h>
+ #include <arpa/inet.h>
+ #include <netinet/in.h>
+--
+2.6.2
+
diff --git a/sys-process/psmisc/psmisc-22.21-r2.ebuild b/sys-process/psmisc/psmisc-22.21-r2.ebuild
index febfaa74ede..a2894e7d08d 100644
--- a/sys-process/psmisc/psmisc-22.21-r2.ebuild
+++ b/sys-process/psmisc/psmisc-22.21-r2.ebuild
@@ -26,6 +26,7 @@ DOCS="AUTHORS ChangeLog NEWS README"
src_prepare() {
epatch "${FILESDIR}/${P}-fuser_typo_fix.patch"
+ epatch "${FILESDIR}/${P}-sysmacros.patch"
}
src_configure() {