Differences From Artifact [d737a52428]:
- File src/platform/POSIX/OFSystemInfo+NetworkInterfaces.m — part of check-in [7413a728a7] at 2024-04-03 02:16:03 on branch trunk — Change license to LGPLv3 only (user: js, size: 19292) [annotate] [blame] [check-ins using] [more...]
To Artifact [d2c08c8ec3]:
- File
src/platform/POSIX/OFSystemInfo+NetworkInterfaces.m
— part of check-in
[32054a4a13]
at
2024-04-17 21:02:00
on branch trunk
— Fix build for Wii
Apparently the SDK was updated so that we have sockaddr_dl now, but no
IFT_ETHER. (user: js, size: 19314) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
632 633 634 635 636 637 638 | [[ret objectForKey: name] setObject: hardwareAddress forKey: OFNetworkInterfaceHardwareAddress]; } return true; #elif defined(HAVE_IOCTL) && defined(HAVE_NET_IF_H) && \ | | | 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 | [[ret objectForKey: name] setObject: hardwareAddress forKey: OFNetworkInterfaceHardwareAddress]; } return true; #elif defined(HAVE_IOCTL) && defined(HAVE_NET_IF_H) && \ defined(HAVE_STRUCT_SOCKADDR_DL) && defined(IFT_ETHER) OFStringEncoding encoding = [OFLocale encoding]; int sock = socket(AF_INET, SOCK_DGRAM, 0); struct ifconf ifc; struct ifreq *ifrs; if (sock < 0) return false; |
︙ | ︙ |