Commit 96555a96d724016e13190b28cffa3bc929ac60dc

Authored by Blue Swirl
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
... ... @@ -31,6 +31,8 @@
31 31  
32 32 /* Needed early for HOST_BSD etc. */
33 33 #include "config-host.h"
  34 +/* Needed early to override system queue definitions on BSD */
  35 +#include "sys-queue.h"
34 36  
35 37 #ifndef _WIN32
36 38 #include <libgen.h>
... ...