ObjFW  Check-in [6f0bb25b4e]

Overview
Comment:Fix +[OFSystemInfo networkInterfaces] on NetBSD
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | 1.1
Files: files | file ages | folders
SHA3-256: 6f0bb25b4ee2fef17451654ebdbd99be9b7997a6078230da04e72aebfbf75543
User & Date: js on 2024-05-05 09:43:18
Other Links: branch diff | manifest | tags
Context
2024-05-11
18:03
configure: Check whether blx is available on ARM check-in: 07913b4cb3 user: js tags: 1.1
2024-05-05
09:43
Fix +[OFSystemInfo networkInterfaces] on NetBSD check-in: 6f0bb25b4e user: js tags: 1.1
09:42
Fix +[OFSystemInfo networkInterfaces] on NetBSD check-in: 9a261b4ba9 user: js tags: trunk
2024-05-01
15:20
Document a lot of undocumented functions & macros check-in: 5164cbc576 user: js tags: 1.1
Changes

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

244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
#   endif
			}
#  endif

			[addresses addItem: &address];

next:
#  ifdef HAVE_STRUCT_SOCKADDR_SA_LEN
			if (current->ifr_addr.sa_len > sizeof(struct sockaddr))
				buffer += sizeof(struct ifreq) -
				    sizeof(struct sockaddr) +
				    current->ifr_addr.sa_len;
			else
#  endif
				buffer += sizeof(struct ifreq);







|







244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
#   endif
			}
#  endif

			[addresses addItem: &address];

next:
#  if defined(HAVE_STRUCT_SOCKADDR_SA_LEN) && !defined(OF_NETBSD)
			if (current->ifr_addr.sa_len > sizeof(struct sockaddr))
				buffer += sizeof(struct ifreq) -
				    sizeof(struct sockaddr) +
				    current->ifr_addr.sa_len;
			else
#  endif
				buffer += sizeof(struct ifreq);