mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-10 07:38:56 +02:00
fx
This commit is contained in:
parent
b191e1023c
commit
08dd0eacab
1 changed files with 3 additions and 1 deletions
|
|
@ -206,7 +206,9 @@ std::vector<Network::NetworkInterface> GetAvailableNetworkInterfaces() {
|
|||
break;
|
||||
if (i == RTA_NETMASK && sa->sa_family == AF_LINK) {
|
||||
struct sockaddr_dl const* sdl = reinterpret_cast<struct sockaddr_dl const*>(sa);
|
||||
#if defined(__APPLE__) || (defined(__FreeBSD__) && __FreeBSD__ < 15)
|
||||
#if defined(__APPLE__)
|
||||
iface.name = std::string(sdl->sdl_data, sdl->sdl_nlen);
|
||||
#elif defined(__FreeBSD__) && __FreeBSD__ < 15
|
||||
iface.name = std::string{::link_ntoa(sdl)};
|
||||
#else
|
||||
size_t namelen = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue