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>
This commit is contained in:
Daniel P. Berrangé
2020-01-16 11:38:18 +00:00
parent aa52947fc6
commit bfeb56b3ad
22 changed files with 3 additions and 23 deletions

View File

@@ -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"