OSDN Git Service

Fix OpenBSD build
authorBlue Swirl <blauwirbel@gmail.com>
Fri, 17 Jul 2009 11:01:45 +0000 (11:01 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Fri, 17 Jul 2009 11:01:45 +0000 (11:01 +0000)
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 <blauwirbel@gmail.com>
vl.c

diff --git a/vl.c b/vl.c
index f475693..ce213c2 100644 (file)
--- 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 <libgen.h>