Skip to contentSkip to conversation

syscalls/ptrace07.c: Fix compilation without WIFEXITED and WEXITSTATUS

PATCH New Jinhui Huang 2 participants 2 messages Oct 26, 2017

lore
Share & tools
lore
#0 lore raw

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.

---
 testcases/kernel/syscalls/ptrace/ptrace07.c | 1 +
 1 file changed, 1 insertion(+)
testcases/kernel/syscalls/ptrace/ptrace07.c +1 -0
index d561b30..82698a4 100644
@@ -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
#1 lore raw

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.h to fix it.

Pushed.

Thanks,
Jan