struct ptrace_peeksiginfo_args is defined in linux/ptrace.h but not in sys/ptrace.h. --- include/ptrace.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/include/ptrace.h +++ b/include/ptrace.h @@ -19,6 +19,8 @@ #ifndef PTRACE_PEEKSIGINFO #define PTRACE_PEEKSIGINFO 0x4209 +#endif + struct ptrace_peeksiginfo_args { __u64 off; /* from which siginfo to start */ __u32 flags; @@ -27,7 +29,6 @@ struct ptrace_peeksiginfo_args { /* Read signals from a shared (process wide) queue */ #define PTRACE_PEEKSIGINFO_SHARED (1 << 0) -#endif #ifndef PTRACE_GETREGSET # define PTRACE_GETREGSET 0x4204