From b1e34d1c3a9059e87719634bfc4db53174d63e14 Mon Sep 17 00:00:00 2001 From: Peter Maydell Date: Tue, 23 Feb 2016 11:58:02 +0000 Subject: osdep.h: Include config-target.h if NEED_CPU_H is defined 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 Reviewed-by: Eric Blake --- include/qemu/osdep.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h index 7c3a073..4538fdc 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 -- cgit v1.1