summaryrefslogtreecommitdiff
path: root/package/strace/patches/patch-signal_c
blob: d0f9dde00900d8be31156d6ef33174a1183d5951 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- strace-4.8.orig/signal.c	2013-05-23 15:41:23.000000000 +0200
+++ strace-4.8/signal.c	2014-02-26 17:40:43.000000000 +0100
@@ -60,6 +60,10 @@
 # include <asm/ptrace_offsets.h>
 #endif
 
+#ifndef POWERPC
+#include <asm/ptrace.h>
+#endif
+
 #if defined(SPARC) || defined(SPARC64) || defined(MIPS)
 typedef struct {
 	struct pt_regs		si_regs;
@@ -815,7 +819,7 @@ sys_sigreturn(struct tcb *tcp)
 {
 #if defined(ARM)
 	if (entering(tcp)) {
-		struct sigcontext_struct sc;
+		struct sigcontext sc;
 		sigset_t sigm;
 		if (umove(tcp, arm_regs.ARM_sp, &sc) < 0)
 			return 0;