]> xenbits.xensource.com Git - qemu-xen-4.0-testing.git/commitdiff
pass-through.h: Sprinkle some #ifdefs to cope with pciutils-dev versions
authorIan Jackson <ian.jackson@eu.citrix.com>
Thu, 24 Jul 2008 12:57:10 +0000 (13:57 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 24 Jul 2008 12:57:10 +0000 (13:57 +0100)
Some versions of pciutils-dev contain #defines which others are lacking.
To avoid spurious compiler warnings we add some #ifdefs.  *sigh*

Signed-off-by: Yuji Shimada <shimada-yxb@necst.nec.co.jp>
hw/pass-through.h

index 9acc4f3e6e550eba2164e64ee077509d3653e96b..b32518f359ff9eaacc1d231676210b0dcc2d5f62 100644 (file)
 /* because the current version of libpci (2.2.0) doesn't define these ID,
  * so we define Capability ID here.
  */
+#ifndef PCI_CAP_ID_HOTPLUG
 /* SHPC Capability List Item reg group */
 #define PCI_CAP_ID_HOTPLUG      0x0C
+#endif
+
+#ifndef PCI_CAP_ID_SSVID
 /* Subsystem ID and Subsystem Vendor ID Capability List Item reg group */
 #define PCI_CAP_ID_SSVID        0x0D
+#endif
+
+#ifndef PCI_MSI_FLAGS_MASK_BIT
 /* interrupt masking & reporting supported */
 #define PCI_MSI_FLAGS_MASK_BIT  0x0100
+#endif
 
 #define PT_INVALID_REG          0xFFFFFFFF      /* invalid register value */
 #define PT_BAR_ALLF             0xFFFFFFFF      /* BAR ALLF value */