]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
util: explicitly include windows.h
authorDaniel P. Berrangé <berrange@redhat.com>
Fri, 17 Jan 2020 17:32:05 +0000 (17:32 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Wed, 29 Jan 2020 14:51:39 +0000 (14:51 +0000)
The virProcess code relies on windows.h and is getting it
indirectly via some GNULIB header fixes. This dependancy
needs to be made explicit.

Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/util/virprocess.c

index d5589daf6a6f8ab019d0c907df12c8f7ba334daa..d8ee3142daea7401190921ee5e78adf8367cf9b7 100644 (file)
 # include <sys/cpuset.h>
 #endif
 
+#ifdef WIN32
+# define WIN32_LEAN_AND_MEAN
+# include <windows.h>
+#endif
+
 #include "viratomic.h"
 #include "virprocess.h"
 #include "virerror.h"