aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2012-10-06 12:46:15 +0200
committerAurelien Jarno <aurelien@aurel32.net>2012-10-06 18:49:41 +0200
commit1d31fca470648ec66afd8743491bfb5846306341 (patch)
tree59390caee637567e3c867ec91b3591c316456052
parentd1e321b82a021c2e86d204af870356bc72b22546 (diff)
qemu-barrier: Fix compilation on i386 hosts
Commit 610b823ef66b993660f1ab1447a769f190e4f3b3 uses QEMU_GNUC_PREREQ on i386 hosts. That macro is defined in qemu-common.h which is not always included before qemu-barrier.h, so compilation on i386 hosts was broken. Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
-rw-r--r--qemu-barrier.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/qemu-barrier.h b/qemu-barrier.h
index 16f09429c3..1de914e882 100644
--- a/qemu-barrier.h
+++ b/qemu-barrier.h
@@ -6,6 +6,8 @@
#if defined(__i386__)
+#include "qemu-common.h" /* QEMU_GNUC_PREREQ */
+
/*
* Because of the strongly ordered x86 storage model, wmb() and rmb() are nops
* on x86(well, a compiler barrier only). Well, at least as long as