]> xenbits.xensource.com Git - qemu-xen-4.3-testing.git/commitdiff
Do not #include <pci/header.h> unless CONFIG_PASSTHROUGH
authorIan Jackson <ian.jackson@eu.citrix.com>
Mon, 20 Jul 2009 11:22:59 +0000 (12:22 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Mon, 20 Jul 2009 11:22:59 +0000 (12:22 +0100)
Attached patch fixes an ioemu build error on NetBSD where
CONFIG_PASSTHROUGH is not (yet) defined.

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
hw/piix4acpi.c

index 9c5fdeeafb85d1371deb859f11485e435cadda12..85b8ac38540133d64f803521b76304ad24017b09 100644 (file)
@@ -40,7 +40,9 @@
 #define PIIX4ACPI_LOGLEVEL PIIX4ACPI_LOG_INFO
 #define PIIX4ACPI_LOG(level, fmt, ...) do { if (level <= PIIX4ACPI_LOGLEVEL) qemu_log(fmt, ## __VA_ARGS__); } while (0)
 
+#ifdef CONFIG_PASSTHROUGH
 #include <pci/header.h>
+#endif
 
 /* PM1a_CNT bits, as defined in the ACPI specification. */
 #define SCI_EN            (1 <<  0)