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
This commit is contained in:
Peter Maydell 2018-02-20 19:11:05 -05:00 committed by Lioncash
parent c41bb9a772
commit 547fabd58e
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -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