* util/getroot.c: Include sys/wait.h only when we need waitpid.
This commit is contained in:
parent
3c7eac445b
commit
43ffba7c65
2 changed files with 7 additions and 1 deletions
|
@ -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>
|
2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
Fix dependencies on cygwin.
|
Fix dependencies on cygwin.
|
||||||
|
|
|
@ -52,7 +52,6 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/wait.h>
|
|
||||||
|
|
||||||
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__OpenBSD__)
|
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__OpenBSD__)
|
||||||
# include <sys/param.h>
|
# include <sys/param.h>
|
||||||
|
@ -223,6 +222,9 @@ xgetcwd (void)
|
||||||
|
|
||||||
#if !defined (__MINGW32__) && !defined (__CYGWIN__) && !defined (__GNU__)
|
#if !defined (__MINGW32__) && !defined (__CYGWIN__) && !defined (__GNU__)
|
||||||
|
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/wait.h>
|
||||||
|
|
||||||
static pid_t
|
static pid_t
|
||||||
exec_pipe (char **argv, int *fd)
|
exec_pipe (char **argv, int *fd)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue