]> granicus.if.org Git - procps-ng/commitdiff
watch: include sys/wait.h for waitpid
authorMike Frysinger <vapier@gentoo.org>
Tue, 24 Jan 2012 05:36:15 +0000 (00:36 -0500)
committerSami Kerola <kerolasa@iki.fi>
Tue, 24 Jan 2012 07:55:05 +0000 (08:55 +0100)
Fixes build warning:
watch.c:682:3: warning: implicit declaration of
function 'waitpid' [-Wimplicit-function-declaration]

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
watch.c

diff --git a/watch.c b/watch.c
index 4a2646b271d702bffd652e91f4c8c5e1c8f67bb0..0bb6239125838ef253d6cff1a1fe2bcc883d2c57 100644 (file)
--- a/watch.c
+++ b/watch.c
@@ -31,6 +31,7 @@
 #include <string.h>
 #include <sys/ioctl.h>
 #include <sys/time.h>
+#include <sys/wait.h>
 #include <termios.h>
 #include <termios.h>
 #include <time.h>