syscalls/ptrace07.c: Fix compilation without WIFEXITED and WEXITSTATUS
PATCH 1/1 syscalls/ptrace07.c: Fix compilation without WIFEXITED and WEXITSTATUS
Compilation failed on some older distributions due to undefined WIFEXITED and WEXITSTATUS, so we include sys/wait.h to fix it.
Signed-off-by Jinhui Huang <[email protected]>
--- testcases/kernel/syscalls/ptrace/ptrace07.c | 1 + 1 file changed, 1 insertion(+)
testcases/kernel/syscalls/ptrace/ptrace07.c +1 -0
@@ -42,6 +42,7 @@#include <stdbool.h> #include <stdlib.h> #include <sys/uio.h> +#include <sys/wait.h> #include "config.h" #include "ptrace.h"
Signature · 1 line
1.8.3.1
PATCH 1/1 syscalls/ptrace07.c: Fix compilation without WIFEXITED and WEXITSTATUS
----- Original Message -----
Quoted 4 lines
Compilation failed on some older distributions due to undefined WIFEXITED and WEXITSTATUS, so we include
sys/wait.hto fix it.Signed-off-by Jinhui Huang <[email protected]>
Pushed.
Thanks,
Jan