ObjFW  Check-in [32054a4a13]

Overview
Comment:Fix build for Wii

Apparently the SDK was updated so that we have sockaddr_dl now, but no
IFT_ETHER.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | trunk
Files: files | file ages | folders
SHA3-256: 32054a4a13f08aeb428319f147cf885214575ffacb184ec1fa1b9764f5e8bfc4
User & Date: js on 2024-04-17 21:02:00
Other Links: manifest | tags
Context
2024-04-17
21:02
Fix build for Wii Leaf check-in: 32054a4a13 user: js tags: trunk
20:50
Add missing endbr / bti check-in: 171615d20a user: js tags: trunk
Changes

Modified src/platform/POSIX/OFSystemInfo+NetworkInterfaces.m from [d737a52428] to [d2c08c8ec3].

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)
	OFStringEncoding encoding = [OFLocale encoding];
	int sock = socket(AF_INET, SOCK_DGRAM, 0);
	struct ifconf ifc;
	struct ifreq *ifrs;

	if (sock < 0)
		return false;







|







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;