[LTP] [PATCH] syscalls/ptrace04: Fix s390 build
Cyril Hrubis
chrubis@suse.cz
Wed Nov 1 09:37:55 CET 2023
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(-)
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;
--
2.41.0
More information about the ltp
mailing list