Commit 96555a96d724016e13190b28cffa3bc929ac60dc
1 parent
2d69f359
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>
Showing
1 changed file
with
2 additions
and
0 deletions
vl.c
| @@ -31,6 +31,8 @@ | @@ -31,6 +31,8 @@ | ||
| 31 | 31 | ||
| 32 | /* Needed early for HOST_BSD etc. */ | 32 | /* Needed early for HOST_BSD etc. */ |
| 33 | #include "config-host.h" | 33 | #include "config-host.h" |
| 34 | +/* Needed early to override system queue definitions on BSD */ | ||
| 35 | +#include "sys-queue.h" | ||
| 34 | 36 | ||
| 35 | #ifndef _WIN32 | 37 | #ifndef _WIN32 |
| 36 | #include <libgen.h> | 38 | #include <libgen.h> |