summaryrefslogtreecommitdiffstats
path: root/include/sysemu/qtest.h
diff options
context:
space:
mode:
authorAlexander Graf2014-01-27 18:22:10 +0100
committerAlexander Graf2014-03-05 03:06:24 +0100
commit9c06a1f79f959fffd09bfb7efc3d76051a6cd2da (patch)
tree36acce2500ad3f1376a092f5cb5b44f2a0b83ec8 /include/sysemu/qtest.h
parenttarget-ppc: remove unsupported SPRs from 970 and P5+ (diff)
downloadqemu-9c06a1f79f959fffd09bfb7efc3d76051a6cd2da.tar.gz
qemu-9c06a1f79f959fffd09bfb7efc3d76051a6cd2da.tar.xz
qemu-9c06a1f79f959fffd09bfb7efc3d76051a6cd2da.zip
KVM: Split QEMUMachine typedef into separate header
Older gcc versions (such as the one in SLES11) get confused when you declare a typedef on the same struct twice. To work around that limitation, let's extract the QEMUMachine typedef into a separate header file that is guarded by preprocessor duplicate include checks. This fixes the following type of compile errors for me: In file included from vl.c:125: include/hw/xen/xen.h:39: error: redefinition of typedef "QEMUMachine" include/sysemu/kvm.h:155: error: previous declaration of "QEMUMachine" was here Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'include/sysemu/qtest.h')
-rw-r--r--include/sysemu/qtest.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sysemu/qtest.h b/include/sysemu/qtest.h
index 28f4875112..d6434cdc14 100644
--- a/include/sysemu/qtest.h
+++ b/include/sysemu/qtest.h
@@ -16,6 +16,7 @@
#include "qemu-common.h"
#include "qapi/error.h"
+#include "sysemu/qemumachine.h"
extern bool qtest_allowed;