Dragonfly BSD needs sys/socket.h

Commit 4bc220f removed `#include <sys/socket.h>` which breaks compiling
on Dragonfly BSD.
This commit is contained in:
Kurtis Rader 2017-01-14 19:53:27 -08:00
parent 56e05dab02
commit 51adf815aa

View file

@ -886,6 +886,7 @@ static bool get_mac_address(unsigned char macaddr[MAC_ADDRESS_MAX_LEN],
#elif defined(HAVE_GETIFADDRS)
// OS X and BSD
#include <sys/socket.h>
#include <ifaddrs.h>
#include <net/if_dl.h>
static bool get_mac_address(unsigned char macaddr[MAC_ADDRESS_MAX_LEN],