From 2aef8c91346b8faa43dffe1e26b6befc65ed7b1b Mon Sep 17 00:00:00 2001 From: Peter Maydell Date: Mon, 8 Feb 2016 18:53:31 +0000 Subject: scripts/tracetool: Include qemu/osdep.h in generated .c files Include qemu/osdep.h as the first include in generated .c files, so they don't implicitly rely on some other included header to pull it in. Signed-off-by: Peter Maydell Reviewed-by: Eric Blake --- scripts/tracetool/backend/simple.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts/tracetool/backend') diff --git a/scripts/tracetool/backend/simple.py b/scripts/tracetool/backend/simple.py index e8c2cd5..3246c20 100644 --- a/scripts/tracetool/backend/simple.py +++ b/scripts/tracetool/backend/simple.py @@ -42,7 +42,8 @@ def generate_h(event): def generate_c_begin(events): - out('#include "trace.h"', + out('#include "qemu/osdep.h"', + '#include "trace.h"', '#include "trace/control.h"', '#include "trace/simple.h"', '') -- cgit v1.1