diff --git a/qga/channel-posix.c b/qga/channel-posix.c index 50d9dd3747..7ad3c00765 100644 --- a/qga/channel-posix.c +++ b/qga/channel-posix.c @@ -1,11 +1,6 @@ +#include "qemu/osdep.h" #include #include -#include -#include -#include -#include -#include -#include "qemu/osdep.h" #include "qemu/sockets.h" #include "qga/channel.h" diff --git a/qga/channel-win32.c b/qga/channel-win32.c index 0452b9f75e..bb59661240 100644 --- a/qga/channel-win32.c +++ b/qga/channel-win32.c @@ -1,9 +1,6 @@ -#include -#include -#include +#include "qemu/osdep.h" #include #include -#include #include #include "qga/guest-agent-core.h" #include "qga/channel.h" diff --git a/qga/commands-posix.c b/qga/commands-posix.c index 5f91275484..9589b2d634 100644 --- a/qga/commands-posix.c +++ b/qga/commands-posix.c @@ -11,18 +11,11 @@ * See the COPYING file in the top-level directory. */ +#include "qemu/osdep.h" #include -#include #include #include -#include -#include -#include #include -#include -#include -#include -#include #include "qga/guest-agent-core.h" #include "qga-qmp-commands.h" #include "qapi/qmp/qerror.h" diff --git a/qga/commands-win32.c b/qga/commands-win32.c index 61ffbdf1ee..cf0757cd0f 100644 --- a/qga/commands-win32.c +++ b/qga/commands-win32.c @@ -11,11 +11,10 @@ * See the COPYING file in the top-level directory. */ +#include "qemu/osdep.h" #include #include #include -#include -#include #include #include #include diff --git a/qga/commands.c b/qga/commands.c index 58568d8452..5b56786ef6 100644 --- a/qga/commands.c +++ b/qga/commands.c @@ -10,6 +10,7 @@ * See the COPYING file in the top-level directory. */ +#include "qemu/osdep.h" #include #include "qga/guest-agent-core.h" #include "qga-qmp-commands.h" diff --git a/qga/guest-agent-command-state.c b/qga/guest-agent-command-state.c index 128c549edb..20b9b22224 100644 --- a/qga/guest-agent-command-state.c +++ b/qga/guest-agent-command-state.c @@ -9,6 +9,7 @@ * This work is licensed under the terms of the GNU GPL, version 2 or later. * See the COPYING file in the top-level directory. */ +#include "qemu/osdep.h" #include #include "qga/guest-agent-core.h" diff --git a/qga/main.c b/qga/main.c index f83a97d245..0a168e2da8 100644 --- a/qga/main.c +++ b/qga/main.c @@ -10,16 +10,13 @@ * This work is licensed under the terms of the GNU GPL, version 2 or later. * See the COPYING file in the top-level directory. */ -#include -#include -#include +#include "qemu/osdep.h" #include #include #include #ifndef _WIN32 #include #include -#include #endif #include "qapi/qmp/json-streamer.h" #include "qapi/qmp/json-parser.h" diff --git a/qga/service-win32.c b/qga/service-win32.c index aef41f04f1..72437587b0 100644 --- a/qga/service-win32.c +++ b/qga/service-win32.c @@ -10,8 +10,7 @@ * This work is licensed under the terms of the GNU GPL, version 2 or later. * See the COPYING file in the top-level directory. */ -#include -#include +#include "qemu/osdep.h" #include #include #include "qga/service-win32.h" diff --git a/qga/vss-win32.c b/qga/vss-win32.c index 2142b4964d..5182e3be91 100644 --- a/qga/vss-win32.c +++ b/qga/vss-win32.c @@ -10,7 +10,7 @@ * See the COPYING file in the top-level directory. */ -#include +#include "qemu/osdep.h" #include #include "qga/guest-agent-core.h" #include "qga/vss-win32.h"