build fix for BSD systems

This commit is contained in:
David Carlier
2017-04-14 20:43:45 +01:00
parent 874d02d7aa
commit 756568ad9c
12 changed files with 29 additions and 33 deletions

View File

@@ -49,7 +49,7 @@
#include <stdarg.h>
#include <errno.h>
#if defined(_LINUX) || defined (_DARWIN)
#if defined(_LINUX) || defined (_DARWIN) || defined(_BSD)
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
@@ -66,7 +66,7 @@
#ifdef _DARWIN
#include <net/if.h>
#endif
#if defined(_LINUX) || defined (_DARWIN)
#if defined(_LINUX) || defined (_DARWIN) || defined(_BSD)
#include <sys/time.h>
#include <sys/uio.h>
#include <unistd.h>