Differences From Artifact [0e4f3315ec]:
- File src/platform/POSIX/OFSystemInfo+NetworkInterfaces.m — part of check-in [9a261b4ba9] at 2024-05-05 09:42:53 on branch trunk — Fix +[OFSystemInfo networkInterfaces] on NetBSD (user: js, size: 19343) [annotate] [blame] [check-ins using] [more...]
To Artifact [11c0f091e8]:
- File src/platform/POSIX/OFSystemInfo+NetworkInterfaces.m — part of check-in [7b0cd744dc] at 2024-08-21 20:14:09 on branch trunk — Make ObjFW compile on macOS/PowerPC 64 (user: js, size: 19353) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
189 190 191 192 193 194 195 | } @try { char *buffer; memset(&ifc, 0, sizeof(ifc)); ifc.ifc_buf = (void *)ifrs; | | | 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 | } @try { char *buffer; memset(&ifc, 0, sizeof(ifc)); ifc.ifc_buf = (void *)ifrs; ifc.ifc_len = 128 * (int)sizeof(struct ifreq); if (ioctl(sock, SIOCGIFCONF, &ifc) < 0) return false; buffer = ifc.ifc_buf; while (buffer < (char *)ifc.ifc_buf + ifc.ifc_len) { struct ifreq *current = (struct ifreq *)(void *)buffer; OFString *name; |
︙ | ︙ | |||
652 653 654 655 656 657 658 | } @try { char *buffer; memset(&ifc, 0, sizeof(ifc)); ifc.ifc_buf = (void *)ifrs; | | | 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 | } @try { char *buffer; memset(&ifc, 0, sizeof(ifc)); ifc.ifc_buf = (void *)ifrs; ifc.ifc_len = 128 * (int)sizeof(struct ifreq); if (ioctl(sock, SIOCGIFCONF, &ifc) < 0) return false; buffer = ifc.ifc_buf; while (buffer < (char *)ifc.ifc_buf + ifc.ifc_len) { struct ifreq *current = (struct ifreq *)(void *)buffer; struct sockaddr_dl *sdl; |
︙ | ︙ |