From 43ffba7c65e5e79a46345febb0c7d0481e92bc77 Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Thu, 22 Aug 2013 16:28:10 +0200 Subject: [PATCH] * util/getroot.c: Include sys/wait.h only when we need waitpid. --- ChangeLog | 4 ++++ util/getroot.c | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e80b50148..41bd90890 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2013-08-22 Vladimir Serbinenko + + * util/getroot.c: Include sys/wait.h only when we need waitpid. + 2013-08-22 Vladimir Serbinenko Fix dependencies on cygwin. diff --git a/util/getroot.c b/util/getroot.c index d5dde8530..29e66d406 100644 --- a/util/getroot.c +++ b/util/getroot.c @@ -52,7 +52,6 @@ #endif #include -#include #if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__OpenBSD__) # include @@ -223,6 +222,9 @@ xgetcwd (void) #if !defined (__MINGW32__) && !defined (__CYGWIN__) && !defined (__GNU__) +#include +#include + static pid_t exec_pipe (char **argv, int *fd) {