diff options
author | Daniel P. Berrangé <berrange@redhat.com> | 2020-01-16 11:38:18 +0000 |
---|---|---|
committer | Daniel P. Berrangé <berrange@redhat.com> | 2020-02-04 14:00:44 +0000 |
commit | bfeb56b3adbf343f65934d641da87499950a9bf3 (patch) | |
tree | 6cfe331f2893f6c6bf92185fa1be92245faa721a /tests/commandtest.c | |
parent | aa52947fc66c7b9d866b155ff88234bbebe714c2 (diff) | |
download | libvirt-bfeb56b3adbf343f65934d641da87499950a9bf3.tar.gz |
src: remove sys/wait.h from many files
Most code now uses the virProcess / virCommand APIs, so
the need for sys/wait.h is quite limited. Removing this
include removes the dependency on GNULIB providing a
dummy sys/wait.h for Windows.
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'tests/commandtest.c')
-rw-r--r-- | tests/commandtest.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/commandtest.c b/tests/commandtest.c index e19ce62207..7df3ae0171 100644 --- a/tests/commandtest.c +++ b/tests/commandtest.c @@ -23,7 +23,9 @@ #include <unistd.h> #include <signal.h> #include <sys/stat.h> -#include <sys/wait.h> +#ifndef WIN32 +# include <sys/wait.h> +#endif #include <fcntl.h> #include "testutils.h" |