mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
LibCore: On OpenBSD, handle anon_create() like on MacOS
This commit is contained in:
parent
fc7099b032
commit
b510747e22
Notes:
sideshowbarker
2024-07-19 16:59:32 +09:00
Author: https://github.com/ghost
Commit: b510747e22
Pull-request: https://github.com/SerenityOS/serenity/pull/17012
1 changed files with 1 additions and 1 deletions
|
@ -403,7 +403,7 @@ ErrorOr<int> anon_create([[maybe_unused]] size_t size, [[maybe_unused]] int opti
|
||||||
TRY(close(fd));
|
TRY(close(fd));
|
||||||
return Error::from_errno(saved_errno);
|
return Error::from_errno(saved_errno);
|
||||||
}
|
}
|
||||||
#elif defined(AK_OS_MACOS) || defined(AK_OS_EMSCRIPTEN)
|
#elif defined(AK_OS_MACOS) || defined(AK_OS_EMSCRIPTEN) || defined(AK_OS_OPENBSD)
|
||||||
struct timespec time;
|
struct timespec time;
|
||||||
clock_gettime(CLOCK_REALTIME, &time);
|
clock_gettime(CLOCK_REALTIME, &time);
|
||||||
auto name = DeprecatedString::formatted("/shm-{}{}", (unsigned long)time.tv_sec, (unsigned long)time.tv_nsec);
|
auto name = DeprecatedString::formatted("/shm-{}{}", (unsigned long)time.tv_sec, (unsigned long)time.tv_nsec);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue