strace: fix 32-bit arm build.

This commit is contained in:
Christian Neukirchen 2015-11-27 19:19:20 +01:00
parent 125540e86a
commit ac53d741bd

View file

@ -1,11 +1,13 @@
--- sigreturn.c --- sigreturn.c
+++ sigreturn.c +++ sigreturn.c
@@ -12,6 +12,8 @@ @@ -12,6 +12,10 @@
#elif NSIG < 32 #elif NSIG < 32
# error NSIG < 32 # error NSIG < 32
#endif #endif
+#ifdef __arch64__
+extern uint64_t *const aarch64_sp_ptr; +extern uint64_t *const aarch64_sp_ptr;
+extern uint32_t *const arm_sp_ptr; +extern uint32_t *const arm_sp_ptr;
+#endif
int int
sys_sigreturn(struct tcb *tcp) sys_sigreturn(struct tcb *tcp)