Received: from eggs.gnu.org ([2001:4830:134:3::10]:60060) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWTFN-0007e7-82 for qemu-devel@nongnu.org; Thu, 18 Feb 2016 13:24:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aWTFL-00071d-UG for qemu-devel@nongnu.org; Thu, 18 Feb 2016 13:24:13 -0500 Received: from mnementh.archaic.org.uk ([2001:8b0:1d0::1]:38439) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWTFL-0006yz-Na for qemu-devel@nongnu.org; Thu, 18 Feb 2016 13:24:11 -0500 From: Peter Maydell Date: Thu, 18 Feb 2016 18:05:23 +0000 Message-Id: <1455818725-7647-7-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1455818725-7647-1-git-send-email-peter.maydell@linaro.org> References: <1455818725-7647-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH 6/8] osdep.h: Include config-target.h if NEED_CPU_H is defined List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: patches@linaro.org NEED_CPU_H is the define we use to distinguish per-target object compilation from common object compilation. For the former, we must also include config-target.h so that the .c files see the necessary CONFIG_ constants. Signed-off-by: Peter Maydell --- include/qemu/osdep.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h index c1b413d..80c62be 100644 --- a/include/qemu/osdep.h +++ b/include/qemu/osdep.h @@ -26,6 +26,9 @@ #define QEMU_OSDEP_H #include "config-host.h" +#ifdef NEED_CPU_H +#include "config-target.h" +#endif #include "qemu/compiler.h" /* Older versions of C++ don't get definitions of various macros from -- 1.9.1