summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2011-06-23 10:05:12 +0200
committerBlue Swirl <blauwirbel@gmail.com>2011-06-26 17:35:47 +0000
commitaf2be2077734e0ebfc8afbe6caf0f89a1474eef2 (patch)
tree9c72a60fdd424fcfe8c1d7f27e5093308b2e696c /hw
parent744d3644181ddb16ef5944a0f9217e46961c8c84 (diff)
downloadqemu-af2be2077734e0ebfc8afbe6caf0f89a1474eef2.tar.gz
Fix fallouts from Linux header inclusion
This is an all-in-one fix for the smaller and bigger mistakes of the build system changes for accompanied Linux headers: - only enable KVM and vhost on Linux hosts - fix powerpc asm header symlink - do not use Linux headers on non-Linux hosts - fix kvmclock for !CONFIG_KVM - fix s390 build on non-Linux hosts Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Tested-by: Andreas Färber <andreas.faerber@web.de> Tested-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/kvmclock.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/hw/kvmclock.h b/hw/kvmclock.h
index 7a83cbe8f6..252ea13461 100644
--- a/hw/kvmclock.h
+++ b/hw/kvmclock.h
@@ -11,4 +11,14 @@
*
*/
+#ifdef CONFIG_KVM
+
void kvmclock_create(void);
+
+#else /* CONFIG_KVM */
+
+static inline void kvmclock_create(void)
+{
+}
+
+#endif /* !CONFIG_KVM */