aboutsummaryrefslogtreecommitdiffstats
path: root/community/psmisc/musl_ptregs.patch
diff options
context:
space:
mode:
authorBreno Leitao <breno.leitao@gmail.com>2017-04-12 19:54:14 +0000
committerBreno Leitao <breno.leitao@gmail.com>2017-04-12 20:00:52 +0000
commit0c36e883cfacaecdb74adc09af6ab7a0af2e44b9 (patch)
tree7b69519a917aa8beff3577f95b02a399d15b1ff6 /community/psmisc/musl_ptregs.patch
parent6bc4e643f3d673f0f0503fb9ad128c593795c6a5 (diff)
downloadaports-0c36e883cfacaecdb74adc09af6ab7a0af2e44b9.tar.bz2
aports-0c36e883cfacaecdb74adc09af6ab7a0af2e44b9.tar.xz
community/psmisc: Fix FTBFS on ppc64le
There is an issue with psmisc that fails to build due to names clash. This is the type of the problem this patch is resolving: In file included from /usr/include/sys/user.h:11:0, from peekfd.c:33: /usr/include/bits/user.h:1:8: error: redefinition of 'struct pt_regs' struct pt_regs { ^~~~~~~ In file included from peekfd.c:30:0: /usr/include/asm/ptrace.h:31:8: note: originally defined here struct pt_regs { ^~~~~~~
Diffstat (limited to 'community/psmisc/musl_ptregs.patch')
-rw-r--r--community/psmisc/musl_ptregs.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/community/psmisc/musl_ptregs.patch b/community/psmisc/musl_ptregs.patch
new file mode 100644
index 0000000000..29fee6a2a1
--- /dev/null
+++ b/community/psmisc/musl_ptregs.patch
@@ -0,0 +1,20 @@
+Author: Breno Leitao <brenohl@br.ibm.com>
+Date: Thu Apr 6 14:03:00 2017 -0300
+
+ peekfd: Avoid pt_regs clash
+
+Index: psmisc-22.21/src/peekfd.c
+===================================================================
+--- a/src/peekfd.c.old
++++ b/src/peekfd.c
+@@ -27,7 +27,9 @@
+ #include <sys/types.h>
+ #include <sys/wait.h>
+ #include <sys/syscall.h>
++#define pt_regs uapi_pt_regs
+ #include <asm/ptrace.h>
++#undef pt_regs
+ #include <byteswap.h>
+ #include <endian.h>
+ #include <sys/user.h>
+