* util/getroot.c: Include sys/wait.h only when we need waitpid.

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2013-08-22 16:28:10 +02:00
parent 3c7eac445b
commit 43ffba7c65
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
* util/getroot.c: Include sys/wait.h only when we need waitpid.
2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
Fix dependencies on cygwin.

View file

@ -52,7 +52,6 @@
#endif
#include <sys/types.h>
#include <sys/wait.h>
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__OpenBSD__)
# include <sys/param.h>
@ -223,6 +222,9 @@ xgetcwd (void)
#if !defined (__MINGW32__) && !defined (__CYGWIN__) && !defined (__GNU__)
#include <sys/types.h>
#include <sys/wait.h>
static pid_t
exec_pipe (char **argv, int *fd)
{