ObjFW  Check-in [66238960cb]

Overview
Comment:Do not use lstat() on Wii

lstat() exists, but just crashes.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 66238960cbe595c982bdbe0f2bf75a39401a3cb8711f106589464c7b8b3c3c46
User & Date: js on 2018-08-25 19:04:40
Other Links: manifest | tags
Context
2018-08-25
19:09
tests: Use the same path tests on Wii as on 3DS check-in: e649da7412 user: js tags: trunk
19:04
Do not use lstat() on Wii check-in: 66238960cb user: js tags: trunk
19:02
Use the same path handling on Wii as on 3DS check-in: 4d2a22a5d9 user: js tags: trunk
Changes

Modified src/OFURLHandler_file.m from [39fecea33b] to [076074cb30].

229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
#endif
}

static int
of_lstat(OFString *path, of_stat_t *buffer)
{
#if defined(HAVE_LSTAT) && !defined(OF_WINDOWS) && !defined(OF_AMIGAOS) && \
    !defined(OF_NINTENDO_3DS)
# ifdef OF_HAVE_OFF64_T
	return lstat64([path cStringWithEncoding: [OFLocale encoding]], buffer);
# else
	return lstat([path cStringWithEncoding: [OFLocale encoding]], buffer);
# endif
#else
	return of_stat(path, buffer);







|







229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
#endif
}

static int
of_lstat(OFString *path, of_stat_t *buffer)
{
#if defined(HAVE_LSTAT) && !defined(OF_WINDOWS) && !defined(OF_AMIGAOS) && \
    !defined(OF_NINTENDO_3DS) && !defined(OF_WII)
# ifdef OF_HAVE_OFF64_T
	return lstat64([path cStringWithEncoding: [OFLocale encoding]], buffer);
# else
	return lstat([path cStringWithEncoding: [OFLocale encoding]], buffer);
# endif
#else
	return of_stat(path, buffer);