summaryrefslogtreecommitdiffstats
path: root/scripts/qapi-event.py
diff options
context:
space:
mode:
authorEric Blake2016-02-08 16:36:46 +0100
committerPeter Maydell2016-02-16 15:29:27 +0100
commit9167ebd98f97dee8afa3ee206f1f48244b8707d2 (patch)
treef1a886bb90301366e32dd4d195e8f6379ebe3cb8 /scripts/qapi-event.py
parenttests: Clean up includes (diff)
downloadqemu-9167ebd98f97dee8afa3ee206f1f48244b8707d2.tar.gz
qemu-9167ebd98f97dee8afa3ee206f1f48244b8707d2.tar.xz
qemu-9167ebd98f97dee8afa3ee206f1f48244b8707d2.zip
qapi: Clean up includes in generated files
As a followup to commit cbf2115, clean up the includes in files generated by QAPI so that osdep.h is included first in .c files, and headers which it implies are not included manually. This patch is done manually, since Coccinelle (and therefore scripts/clean-includes) doesn't see into the generator scripts. Signed-off-by: Eric Blake <eblake@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'scripts/qapi-event.py')
-rw-r--r--scripts/qapi-event.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/qapi-event.py b/scripts/qapi-event.py
index 07bcb73d3d..544ae1218d 100644
--- a/scripts/qapi-event.py
+++ b/scripts/qapi-event.py
@@ -159,6 +159,7 @@ h_comment = '''
c_comment, h_comment)
fdef.write(mcgen('''
+#include "qemu/osdep.h"
#include "qemu-common.h"
#include "%(prefix)sqapi-event.h"
#include "%(prefix)sqapi-visit.h"