From 547fabd58e14317d2d0c6d33cf9c5fa86086096b Mon Sep 17 00:00:00 2001 From: Peter Maydell Date: Tue, 20 Feb 2018 19:11:05 -0500 Subject: [PATCH] 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. Backports commit b1e34d1c3a9059e87719634bfc4db53174d63e14 from qemu --- qemu/include/qemu/osdep.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qemu/include/qemu/osdep.h b/qemu/include/qemu/osdep.h index 0bb1b433..fe33feb9 100644 --- a/qemu/include/qemu/osdep.h +++ b/qemu/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