From: Blue Swirl Date: Fri, 17 Jul 2009 11:01:45 +0000 (+0000) Subject: Fix OpenBSD build X-Git-Tag: v0.11.0-rc1~30 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=e93d914384e3d37fa7965dea95b51cc7459832a0;p=users%2Fdwmw2%2Fqemu.git Fix OpenBSD build The header sys-queue.h must be #included early, otherwise at some point OS queue macros will be used. On OpenBSD, those don't define TAILQ_FOREACH_SAFE. Signed-off-by: Blue Swirl --- diff --git a/vl.c b/vl.c index f4756931c0..ce213c2cd4 100644 --- a/vl.c +++ b/vl.c @@ -31,6 +31,8 @@ /* Needed early for HOST_BSD etc. */ #include "config-host.h" +/* Needed early to override system queue definitions on BSD */ +#include "sys-queue.h" #ifndef _WIN32 #include