Include proper headers for FreeBSD

This commit is contained in:
Li-Wen Hsu 2014-11-07 01:26:59 +08:00
parent e49537c8fa
commit a102a3273e

View File

@ -9,6 +9,12 @@
#include <sys/ioctl.h>
#include <unistd.h>
#define AF_LINK AF_PACKET
#elif defined(__FreeBSD__)
#include <net/if.h>
#include <netinet/in.h>
#include <sys/ioctl.h>
#include <unistd.h>
#include <net/if_dl.h>
#else
#include <net/if_dl.h>
#endif