Received: from eggs.gnu.org ([2001:4830:134:3::10]:50717) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOtJV-0001Kb-Ff for qemu-devel@nongnu.org; Thu, 28 Jan 2016 15:37:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aOtJS-0006y8-Gs for qemu-devel@nongnu.org; Thu, 28 Jan 2016 15:37:09 -0500 Received: from roura.ac.upc.edu ([147.83.33.10]:50947 helo=roura.ac.upc.es) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOtJS-0006xn-2v for qemu-devel@nongnu.org; Thu, 28 Jan 2016 15:37:06 -0500 From: =?utf-8?b?TGx1w61z?= Vilanova Date: Thu, 28 Jan 2016 21:37:04 +0100 Message-Id: <145401342418.13355.6815605327627520518.stgit@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH] build: Fix double-definition when using LTTng tracing List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Richard Henderson , Peter Crosthwaite In linux-user builds, the LTTng backend pulls "syscall.h", which resets defines in "errno_defs.h", while "qemu.h" pulls "errno_defs.h" after "syscall.h" has been included. Signed-off-by: Llu=C3=ADs Vilanova --- translate-all.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate-all.c b/translate-all.c index 042a857..88d3e7d 100644 --- a/translate-all.c +++ b/translate-all.c @@ -33,7 +33,6 @@ #include "qemu-common.h" #define NO_CPU_IO_DEFS #include "cpu.h" -#include "trace.h" #include "disas/disas.h" #include "tcg.h" #if defined(CONFIG_USER_ONLY) @@ -56,6 +55,7 @@ #else #include "exec/address-spaces.h" #endif +#include "trace.h" =20 #include "exec/cputlb.h" #include "exec/tb-hash.h"