diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2016-02-23 11:58:02 +0000 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineering.com> | 2019-11-29 19:45:30 -0600 |
commit | c11f295a54db6ee654f56ba905012226ca40dbf6 (patch) | |
tree | 1dbe91b09ec963ff951656e51cfa1b7b7484d9d9 | |
parent | 71e172490fec460eb5e431acbb913d55876b7837 (diff) | |
download | hqemu-c11f295a54db6ee654f56ba905012226ca40dbf6.zip hqemu-c11f295a54db6ee654f56ba905012226ca40dbf6.tar.gz |
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 <peter.maydell@linaro.org>
Reviewed-by: Eric Blake <eblake@redhat.com>
-rw-r--r-- | include/qemu/osdep.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 |