From 831377529c58ed43be11f6dbc518cbbefb4ce67f Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 20 Jul 2009 12:22:59 +0100 Subject: [PATCH] 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 --- hw/piix4acpi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/piix4acpi.c b/hw/piix4acpi.c index 9c5fdeea..85b8ac38 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) -- 2.39.5