blob: fb5f72529fea85f4f4c7bdf4fa13b53ebbca3948 [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001From af1fdce78bff4343f3c84ea118abdc3c739fc646 Mon Sep 17 00:00:00 2001
Patrick Williamsc0f7c042017-02-23 20:41:17 -06002From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 30 Apr 2016 16:23:56 +0000
4Subject: [PATCH] Fix build when using non-glibc libc implementation on ppc
5
6glibc includes the kernel header into its own header for macros
7musl does not
8
9Upstream-Status: Pending
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
Brad Bishop19323692019-04-05 15:28:33 -040011
Patrick Williamsc0f7c042017-02-23 20:41:17 -060012---
13 ptrace.h | 8 +++++++-
14 1 file changed, 7 insertions(+), 1 deletion(-)
15
Patrick Williamsc0f7c042017-02-23 20:41:17 -060016--- a/ptrace.h
17+++ b/ptrace.h
Brad Bishop19323692019-04-05 15:28:33 -040018@@ -30,7 +30,13 @@
Brad Bishop08902b02019-08-20 09:16:51 -040019 # define ptrace_peeksiginfo_args XXX_ptrace_peeksiginfo_args
20 # endif
Patrick Williamsc0f7c042017-02-23 20:41:17 -060021
Patrick Williamsc0f7c042017-02-23 20:41:17 -060022+#if defined(POWERPC) && !defined(__GLIBC__)
23+#define pt_regs uapi_pt_regs
24+#endif
Brad Bishop08902b02019-08-20 09:16:51 -040025 # include <linux/ptrace.h>
Patrick Williamsc0f7c042017-02-23 20:41:17 -060026+#if defined(POWERPC) && !defined(__GLIBC__)
27+# undef pt_regs
28+#endif
29
Brad Bishop08902b02019-08-20 09:16:51 -040030 # ifdef HAVE_STRUCT_IA64_FPREG
31 # undef ia64_fpreg