summaryrefslogtreecommitdiff
path: root/tests/commandtest.c
diff options
context:
space:
mode:
authorDaniel P. Berrangé <berrange@redhat.com>2020-01-16 11:38:18 +0000
committerDaniel P. Berrangé <berrange@redhat.com>2020-02-04 14:00:44 +0000
commitbfeb56b3adbf343f65934d641da87499950a9bf3 (patch)
tree6cfe331f2893f6c6bf92185fa1be92245faa721a /tests/commandtest.c
parentaa52947fc66c7b9d866b155ff88234bbebe714c2 (diff)
downloadlibvirt-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.c4
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"