mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-22 17:29:01 +00:00
LibCore: Use BSD implementation of anon_create() on Haiku
This commit is contained in:
parent
45e38c99c2
commit
0dfd6994e3
Notes:
sideshowbarker
2024-07-19 16:50:39 +09:00
Author: https://github.com/ghost
Commit: 0dfd6994e3
Pull-request: https://github.com/SerenityOS/serenity/pull/20808
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/Hendiadyoin1
Reviewed-by: https://github.com/diversys
1 changed files with 1 additions and 1 deletions
|
@ -513,7 +513,7 @@ ErrorOr<int> anon_create([[maybe_unused]] size_t size, [[maybe_unused]] int opti
|
|||
TRY(close(fd));
|
||||
return Error::from_errno(saved_errno);
|
||||
}
|
||||
#elif defined(AK_OS_BSD_GENERIC) || defined(AK_OS_EMSCRIPTEN)
|
||||
#elif defined(AK_OS_BSD_GENERIC) || defined(AK_OS_EMSCRIPTEN) || defined(AK_OS_HAIKU)
|
||||
struct timespec time;
|
||||
clock_gettime(CLOCK_REALTIME, &time);
|
||||
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