1 |
commit: ea403ac55a029c8eacb076269d86bd136ef3eb71 |
2 |
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Mar 7 20:42:27 2016 +0000 |
4 |
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Mar 7 20:43:13 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ea403ac5 |
7 |
|
8 |
sys-process/psmisc: fix building w/newer glibc |
9 |
|
10 |
.../psmisc/files/psmisc-22.21-sysmacros.patch | 26 ++++++++++++++++++++++ |
11 |
sys-process/psmisc/psmisc-22.21-r2.ebuild | 1 + |
12 |
2 files changed, 27 insertions(+) |
13 |
|
14 |
diff --git a/sys-process/psmisc/files/psmisc-22.21-sysmacros.patch b/sys-process/psmisc/files/psmisc-22.21-sysmacros.patch |
15 |
new file mode 100644 |
16 |
index 0000000..440c5e6 |
17 |
--- /dev/null |
18 |
+++ b/sys-process/psmisc/files/psmisc-22.21-sysmacros.patch |
19 |
@@ -0,0 +1,26 @@ |
20 |
+From 367886e1c49238d1a02721f849564d77a163465b Mon Sep 17 00:00:00 2001 |
21 |
+From: Mike Frysinger <vapier@g.o> |
22 |
+Date: Mon, 7 Mar 2016 14:52:22 -0500 |
23 |
+Subject: [PATCH] fuser: include sysmacros.h for makedev |
24 |
+ |
25 |
+BSD/Linux define makedev in the sysmacros.h header. Include it directly |
26 |
+instead of relying on types.h pulling it in for us. |
27 |
+--- |
28 |
+ src/fuser.c | 1 + |
29 |
+ 1 file changed, 1 insertion(+) |
30 |
+ |
31 |
+diff --git a/src/fuser.c b/src/fuser.c |
32 |
+index da94d22..380046f 100644 |
33 |
+--- a/src/fuser.c |
34 |
++++ b/src/fuser.c |
35 |
+@@ -36,6 +36,7 @@ |
36 |
+ #include <sys/types.h> |
37 |
+ #include <sys/stat.h> |
38 |
+ #include <sys/socket.h> |
39 |
++#include <sys/sysmacros.h> |
40 |
+ #include <sys/wait.h> |
41 |
+ #include <arpa/inet.h> |
42 |
+ #include <netinet/in.h> |
43 |
+-- |
44 |
+2.6.2 |
45 |
+ |
46 |
|
47 |
diff --git a/sys-process/psmisc/psmisc-22.21-r2.ebuild b/sys-process/psmisc/psmisc-22.21-r2.ebuild |
48 |
index febfaa7..a2894e7 100644 |
49 |
--- a/sys-process/psmisc/psmisc-22.21-r2.ebuild |
50 |
+++ b/sys-process/psmisc/psmisc-22.21-r2.ebuild |
51 |
@@ -26,6 +26,7 @@ DOCS="AUTHORS ChangeLog NEWS README" |
52 |
|
53 |
src_prepare() { |
54 |
epatch "${FILESDIR}/${P}-fuser_typo_fix.patch" |
55 |
+ epatch "${FILESDIR}/${P}-sysmacros.patch" |
56 |
} |
57 |
|
58 |
src_configure() { |