diff mbox

[2/7] volatile-test: Fix waitpid warning

Message ID 1375133480-5597-3-git-send-email-john.stultz@linaro.org
State Accepted
Headers show

Commit Message

John Stultz July 29, 2013, 9:31 p.m. UTC
Make sure we include sys/wait.h to avoid waipid warnings at build.

Signed-off-by: John Stultz <john.stultz@linaro.org>
---
 volatile-test-signal.c | 1 +
 volatile-test.c        | 1 +
 2 files changed, 2 insertions(+)
diff mbox

Patch

diff --git a/volatile-test-signal.c b/volatile-test-signal.c
index ebca597..8c60451 100644
--- a/volatile-test-signal.c
+++ b/volatile-test-signal.c
@@ -5,6 +5,7 @@ 
 #include <sched.h>
 #include <sys/mman.h>
 #include <sys/types.h>
+#include <sys/wait.h>
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
diff --git a/volatile-test.c b/volatile-test.c
index 48b2ec3..e23b55c 100644
--- a/volatile-test.c
+++ b/volatile-test.c
@@ -5,6 +5,7 @@ 
 #include <sched.h>
 #include <sys/mman.h>
 #include <sys/types.h>
+#include <sys/wait.h>
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>