diff --git a/qemu/scripts/qapi-event.py b/qemu/scripts/qapi-event.py index 4b76e4d8..82d5bb9a 100644 --- a/qemu/scripts/qapi-event.py +++ b/qemu/scripts/qapi-event.py @@ -207,6 +207,7 @@ fdef.write(mcgen(''' #include "%(prefix)sqapi-event.h" #include "%(prefix)sqapi-visit.h" #include "qapi/error.h" +#include "qapi/qmp/qdict.h" #include "qapi/qobject-output-visitor.h" #include "qapi/qmp-event.h" @@ -214,7 +215,6 @@ fdef.write(mcgen(''' prefix=prefix)) fdecl.write(mcgen(''' -#include "qapi/qmp/qdict.h" #include "%(prefix)sqapi-types.h" ''', diff --git a/qemu/target/i386/cpu.c b/qemu/target/i386/cpu.c index 44823ef0..fb5b1b49 100644 --- a/qemu/target/i386/cpu.c +++ b/qemu/target/i386/cpu.c @@ -26,6 +26,7 @@ #include "sysemu/cpus.h" #include "qapi/error.h" +#include "qapi/qmp/qdict.h" #include "qapi/qmp/qerror.h" #include "qapi-visit.h"