qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] qemu-barrier: Fix compilation on i386 hosts
@ 2012-10-06 10:46 Stefan Weil
  2012-10-06 18:35 ` Aurelien Jarno
  2012-10-07 16:10 ` Blue Swirl
  0 siblings, 2 replies; 4+ messages in thread
From: Stefan Weil @ 2012-10-06 10:46 UTC (permalink / raw)
  To: qemu-devel; +Cc: Stefan Weil, Anthony Liguori

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>
---

This patch fixes broken compilation for i386 hosts which
was reported by the buildbot:

http://buildbot.b1-systems.de/qemu/builders/default_mingw32/builds/396

Regards

Stefan Weil

 qemu-barrier.h |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/qemu-barrier.h b/qemu-barrier.h
index 16f0942..1de914e 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
-- 
1.7.10

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-10-07 18:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-06 10:46 [Qemu-devel] [PATCH] qemu-barrier: Fix compilation on i386 hosts Stefan Weil
2012-10-06 18:35 ` Aurelien Jarno
2012-10-07 16:10 ` Blue Swirl
2012-10-07 18:10   ` Aurelien Jarno

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).