aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2017-03-03 17:28:50 +0100
committerPeter Maydell <peter.maydell@linaro.org>2017-03-04 15:14:34 +0000
commiteeb61d4f8270a6849d9a584fc83da3869b79066d (patch)
tree54a9a3123389a0091017d67cd33f063575d474b7 /include
parent4ae4b609ee2d5bcc9df6c03c21dc1fed527aada1 (diff)
ppc: avoid typedef redefinitions
These cause compilation failures on CentOS 6 or other operating systems with older GCCs. Cc: David Gibson <dgibson@redhat.com> Cc: qemu-ppc@nongnu.org Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-id: 1488558530-21016-3-git-send-email-pbonzini@redhat.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include')
-rw-r--r--include/hw/ppc/spapr.h1
-rw-r--r--include/hw/ppc/xics.h4
2 files changed, 2 insertions, 3 deletions
diff --git a/include/hw/ppc/spapr.h b/include/hw/ppc/spapr.h
index cfd271129d..15f43717eb 100644
--- a/include/hw/ppc/spapr.h
+++ b/include/hw/ppc/spapr.h
@@ -21,7 +21,6 @@ typedef struct sPAPREventSource sPAPREventSource;
#define SPAPR_TIMEBASE_FREQ 512000000ULL
typedef struct sPAPRMachineClass sPAPRMachineClass;
-typedef struct sPAPRMachineState sPAPRMachineState;
#define TYPE_SPAPR_MACHINE "spapr-machine"
#define SPAPR_MACHINE(obj) \
diff --git a/include/hw/ppc/xics.h b/include/hw/ppc/xics.h
index 1945913bf1..9a5e715fe5 100644
--- a/include/hw/ppc/xics.h
+++ b/include/hw/ppc/xics.h
@@ -139,9 +139,9 @@ struct ICSIRQState {
uint8_t flags;
};
-typedef struct XICSFabric {
+struct XICSFabric {
Object parent;
-} XICSFabric;
+};
#define TYPE_XICS_FABRIC "xics-fabric"
#define XICS_FABRIC(obj) \