• A
    KVM: Split QEMUMachine typedef into separate header · 9c06a1f7
    Alexander Graf 提交于
    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: NAlexander Graf <agraf@suse.de>
    9c06a1f7
kvm.h 10.6 KB