Skip to content

Commit

Permalink
FvwmMFL: libbson: guard for FreeBSD
Browse files Browse the repository at this point in the history
FreeBSD has bson.h in a different location than pkg-config expects.  For
now, guard against this with #ifdef.

Fixes #200
  • Loading branch information
ThomasAdam committed Sep 5, 2020
1 parent 898a452 commit f230425
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/FvwmMFL/FvwmMFL.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@
#include <errno.h>
#include <stdbool.h>

#if defined(__FreeBSD__)
#include <libbson-1.0/bson.h>
#else
#include <bson/bson.h>
#endif

#include <event2/event.h>
/* FIXME: including event_struct.h won't be binary comaptible with future
Expand Down

0 comments on commit f230425

Please sign in to comment.