Skip to content

Commit

Permalink
Free BSD Compilation Patch
Browse files Browse the repository at this point in the history
On FreeBSD compilation failed due to missing includes in os-freebsd.h.
This was causing errors about undefined structs and types in missing includes.
Also defines __BSD_VISIBLE due to FreeBSD not providing u_int, u_long etc
in a default _POSIX_C_SOURCE environment.

Fixes: #68
  • Loading branch information
Uglymotha committed May 20, 2020
1 parent c3e813a commit f71ba40
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/os-freebsd.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#define __BSD_VISIBLE 1
#include <sys/param.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <net/route.h>
#include <netinet/in_systm.h>
#include <netinet/ip_mroute.h>
Expand Down

0 comments on commit f71ba40

Please sign in to comment.