mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 21:44:16 +00:00
Dragonfly BSD needs sys/socket.h
Commit 4bc220f
removed `#include <sys/socket.h>` which breaks compiling
on Dragonfly BSD.
This commit is contained in:
parent
56e05dab02
commit
51adf815aa
1 changed files with 1 additions and 0 deletions
|
@ -886,6 +886,7 @@ static bool get_mac_address(unsigned char macaddr[MAC_ADDRESS_MAX_LEN],
|
||||||
#elif defined(HAVE_GETIFADDRS)
|
#elif defined(HAVE_GETIFADDRS)
|
||||||
|
|
||||||
// OS X and BSD
|
// OS X and BSD
|
||||||
|
#include <sys/socket.h>
|
||||||
#include <ifaddrs.h>
|
#include <ifaddrs.h>
|
||||||
#include <net/if_dl.h>
|
#include <net/if_dl.h>
|
||||||
static bool get_mac_address(unsigned char macaddr[MAC_ADDRESS_MAX_LEN],
|
static bool get_mac_address(unsigned char macaddr[MAC_ADDRESS_MAX_LEN],
|
||||||
|
|
Loading…
Reference in a new issue