public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH] syscalls/ptrace04: Fix s390 build
@ 2023-11-01  8:37 Cyril Hrubis
  2023-11-01  8:38 ` Cyril Hrubis
  0 siblings, 1 reply; 2+ messages in thread
From: Cyril Hrubis @ 2023-11-01  8:37 UTC (permalink / raw)
  To: ltp

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


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-11-01  8:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-01  8:37 [LTP] [PATCH] syscalls/ptrace04: Fix s390 build Cyril Hrubis
2023-11-01  8:38 ` Cyril Hrubis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox