From: Ian Jackson Date: Mon, 20 Jul 2009 11:22:59 +0000 (+0100) Subject: Do not #include unless CONFIG_PASSTHROUGH X-Git-Tag: xen-4.0.0-rc1~55 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=831377529c58ed43be11f6dbc518cbbefb4ce67f;p=qemu-xen-4.1-testing.git Do not #include unless CONFIG_PASSTHROUGH Attached patch fixes an ioemu build error on NetBSD where CONFIG_PASSTHROUGH is not (yet) defined. Signed-off-by: Christoph Egger --- diff --git a/hw/piix4acpi.c b/hw/piix4acpi.c index 9c5fdeeaf..85b8ac385 100644 --- a/hw/piix4acpi.c +++ b/hw/piix4acpi.c @@ -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 +#endif /* PM1a_CNT bits, as defined in the ACPI specification. */ #define SCI_EN (1 << 0)