diff mbox series

syscalls/ptrace04: Fix s390 build

Message ID 20231101083755.4093-1-chrubis@suse.cz
State Accepted
Headers show
Series syscalls/ptrace04: Fix s390 build | expand

Commit Message

Cyril Hrubis Nov. 1, 2023, 8:37 a.m. UTC
s390 does not defined PTRACE_GETREGS

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
---
 testcases/kernel/syscalls/ptrace/ptrace04.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Cyril Hrubis Nov. 1, 2023, 8:38 a.m. UTC | #1
Hi!
The subject should have said [COMMITTED] since this fixes build failure
and it's obvious minimal fix I just pushed the patch.
diff mbox series

Patch

diff --git a/testcases/kernel/syscalls/ptrace/ptrace04.c b/testcases/kernel/syscalls/ptrace/ptrace04.c
index af35fb3a2..0b25e982b 100644
--- a/testcases/kernel/syscalls/ptrace/ptrace04.c
+++ b/testcases/kernel/syscalls/ptrace/ptrace04.c
@@ -49,7 +49,7 @@  int TST_TOTAL = 2;
 
 void compare_registers(unsigned char poison)
 {
-#ifdef HAVE_STRUCT_PTRACE_REGS
+#if defined(HAVE_STRUCT_PTRACE_REGS) && defined(PTRACE_GETREGS)
 	ptrace_regs _pt_regs;
 	size_t i;
 	long ret;