mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:17:35 +00:00
LibCore: Fix Lagom build of Core::System::utime()
This commit is contained in:
parent
7f5d060450
commit
5911d1c880
1 changed files with 1 additions and 1 deletions
|
@ -550,7 +550,7 @@ ErrorOr<void> utime(StringView path, Optional<struct utimbuf> maybe_buf)
|
||||||
HANDLE_SYSCALL_RETURN_VALUE("utime"sv, rc, {});
|
HANDLE_SYSCALL_RETURN_VALUE("utime"sv, rc, {});
|
||||||
#else
|
#else
|
||||||
String path_string = path;
|
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 Error::from_syscall("utime"sv, -errno);
|
||||||
return {};
|
return {};
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue