]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
util: Do not include sys/wait.h on Win32
authorJiri Denemark <jdenemar@redhat.com>
Fri, 17 Apr 2020 18:27:00 +0000 (20:27 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Fri, 17 Apr 2020 19:30:10 +0000 (21:30 +0200)
This fixes build on mingw broken by my previous commit 36e125296a.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
src/util/virdaemon.c

index 6182ca3c2125138092823cfe02ab8527d5688cf6..31cc24e70308d1a3411705ade7aad024c55b9c0f 100644 (file)
@@ -22,7 +22,9 @@
 
 #include <sys/types.h>
 #include <sys/stat.h>
-#include <sys/wait.h>
+#ifndef WIN32
+# include <sys/wait.h>
+#endif
 #include <fcntl.h>
 #include <unistd.h>
 #include <stdbool.h>