From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47973) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYEii-0003cb-5z for qemu-devel@nongnu.org; Tue, 23 Feb 2016 10:17:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYEie-0007dt-Bg for qemu-devel@nongnu.org; Tue, 23 Feb 2016 10:17:48 -0500 Received: from orth.archaic.org.uk ([2001:8b0:1d0::2]:55943) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYEie-0007dp-5b for qemu-devel@nongnu.org; Tue, 23 Feb 2016 10:17:44 -0500 From: Peter Maydell Date: Tue, 23 Feb 2016 15:17:41 +0000 Message-Id: <1456240661-15422-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH] tracetool: Include osdep.h in generated-ust.c List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , Stefan Hajnoczi , patches@linaro.org When generating the trace/generated-ust.c source file, make sure it includes osdep.h as its first include. This fixes compilation with --enable-trace-backends=ust Signed-off-by: Peter Maydell --- Picked up by the travis build tests. scripts/tracetool/format/ust_events_c.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/tracetool/format/ust_events_c.py b/scripts/tracetool/format/ust_events_c.py index bc97093..52100c0 100644 --- a/scripts/tracetool/format/ust_events_c.py +++ b/scripts/tracetool/format/ust_events_c.py @@ -22,6 +22,8 @@ def generate(events, backend): out('/* This file is autogenerated by tracetool, do not edit. */', '', + '#include "qemu/osdep.h"', + '', '#define TRACEPOINT_DEFINE', '#define TRACEPOINT_CREATE_PROBES', '', -- 1.9.1