summaryrefslogtreecommitdiff
path: root/components/ip.c
diff options
context:
space:
mode:
Diffstat (limited to 'components/ip.c')
-rw-r--r--components/ip.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/components/ip.c b/components/ip.c
index a7b1bfd..70724eb 100644
--- a/components/ip.c
+++ b/components/ip.c
@@ -6,6 +6,9 @@
#if defined(__OpenBSD__)
#include <sys/types.h>
#include <sys/socket.h>
+#elif defined(__FreeBSD__)
+ #include <netinet/in.h>
+ #include <sys/socket.h>
#endif
#include "../util.h"