diff --git a/src/util/virhostcpu.c b/src/util/virhostcpu.c index f9d5db59b96edd90807323e55788e6231b9cc551..0bde532a0c615e99e64dbe39fdde1bda10d5ae5d 100644 --- a/src/util/virhostcpu.c +++ b/src/util/virhostcpu.c @@ -24,7 +24,9 @@ #include #include #include -#include +#ifndef WIN32 +# include +#endif #include #if HAVE_LINUX_KVM_H diff --git a/src/util/virhostdev.c b/src/util/virhostdev.c index 9b4ea30216085fa61208e9833e0c555026bb1861..f8f798920676ffbab0daf23c707ea269a0242f29 100644 --- a/src/util/virhostdev.c +++ b/src/util/virhostdev.c @@ -22,7 +22,6 @@ #include #include -#include #include #include #include diff --git a/src/util/virhostmem.c b/src/util/virhostmem.c index 9c08b9bd78298d0ebfbce09e2ba5ad3ac7b52e53..f37d1ad588ed038e845ec23d0508f157d93bbbc2 100644 --- a/src/util/virhostmem.c +++ b/src/util/virhostmem.c @@ -23,7 +23,6 @@ #include #include -#include #include #if defined(__FreeBSD__) || defined(__APPLE__) diff --git a/src/util/virnetdev.c b/src/util/virnetdev.c index e2aad07c246b3492f228e1c97f8b73ccccdcaa39..b896a7507e83e87d2f3b61f14e6a0214f5dc42bc 100644 --- a/src/util/virnetdev.c +++ b/src/util/virnetdev.c @@ -31,7 +31,9 @@ #include "virutil.h" #include "virjson.h" -#include +#ifndef WIN32 +# include +#endif #include #include diff --git a/src/util/virnetdevbridge.c b/src/util/virnetdevbridge.c index a37bcb4004762c4f0f9f65397c0ae984f4371e09..5bb533f1f0ce2bd591ca094776c11f9c2b696300 100644 --- a/src/util/virnetdevbridge.c +++ b/src/util/virnetdevbridge.c @@ -27,7 +27,9 @@ #include "virlog.h" #include "virstring.h" -#include +#ifndef WIN32 +# include +#endif #include #include #include diff --git a/src/util/virnetdevip.c b/src/util/virnetdevip.c index 5696bc367e5c72bb6885db2c4a946129c3f6bd42..5897c4aa76b6c972aee546402fc55cc50d312843 100644 --- a/src/util/virnetdevip.c +++ b/src/util/virnetdevip.c @@ -33,7 +33,9 @@ # include #endif -#include +#ifndef WIN32 +# include +#endif #include #include diff --git a/src/util/virnetdevtap.c b/src/util/virnetdevtap.c index 6a16b58d60b0136ffecf77ba21eefb03510ff5a9..8656e267cbbe19d62dacd106ae8c4d1c84c36a7f 100644 --- a/src/util/virnetdevtap.c +++ b/src/util/virnetdevtap.c @@ -33,7 +33,9 @@ #include #include -#include +#ifndef WIN32 +# include +#endif #include #include #ifdef __linux__ diff --git a/src/util/virperf.c b/src/util/virperf.c index 29c388a1f20f943510a0dc42de38b647031aed7f..04d27309e1ec9624bcf88bc4476072b58085c74f 100644 --- a/src/util/virperf.c +++ b/src/util/virperf.c @@ -17,7 +17,9 @@ */ #include -#include +#ifndef WIN32 +# include +#endif #if defined HAVE_SYS_SYSCALL_H # include #endif diff --git a/src/util/virvsock.c b/src/util/virvsock.c index b28287fdee90c973fbd2a0dc8a9153bf60fc6f70..2638c5095a6fb9786ee75e1820a622db342d7473 100644 --- a/src/util/virvsock.c +++ b/src/util/virvsock.c @@ -17,7 +17,9 @@ #include -#include +#ifdef HAVE_SYS_IOCTL_H +# include +#endif #if HAVE_DECL_VHOST_VSOCK_SET_GUEST_CID # include