mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:37:35 +00:00
LibCore: On OpenBSD, handle anon_create() like on MacOS
This commit is contained in:
parent
fc7099b032
commit
b510747e22
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