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 <blauwirbel@gmail.com>
master
Blue Swirl 2009-07-17 11:01:45 +00:00
parent 2d69f3590d
commit 96555a96d7
1 changed files with 2 additions and 0 deletions

2
vl.c
View File

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