]> git.proxmox.com Git - mirror_qemu.git/commit
KVM: Split QEMUMachine typedef into separate header
authorAlexander Graf <agraf@suse.de>
Mon, 27 Jan 2014 17:22:10 +0000 (18:22 +0100)
committerAlexander Graf <agraf@suse.de>
Wed, 5 Mar 2014 02:06:24 +0000 (03:06 +0100)
commit9c06a1f79f959fffd09bfb7efc3d76051a6cd2da
tree36acce2500ad3f1376a092f5cb5b44f2a0b83ec8
parent88ccd23a0c99155ff1eb5162d3685fde9c679b3d
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>
include/hw/boards.h
include/hw/xen/xen.h
include/sysemu/kvm.h
include/sysemu/qemumachine.h [new file with mode: 0644]
include/sysemu/qtest.h
kvm-stub.c