mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
LibCore: Fix Lagom build of Core::System::utime()
This commit is contained in:
@@ -550,7 +550,7 @@ ErrorOr<void> utime(StringView path, Optional<struct utimbuf> maybe_buf)
|
||||
HANDLE_SYSCALL_RETURN_VALUE("utime"sv, rc, {});
|
||||
#else
|
||||
String path_string = path;
|
||||
if (::utime(path.characters(), buf) < 0)
|
||||
if (::utime(path_string.characters(), buf) < 0)
|
||||
return Error::from_syscall("utime"sv, -errno);
|
||||
return {};
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user