From 31d7ef5696416c9b43ca9c49dd10b0c90c6d61c1 Mon Sep 17 00:00:00 2001 From: avanspector Date: Mon, 26 Feb 2024 06:16:13 +0100 Subject: [PATCH] Update os_haiku.odin --- core/os/os_haiku.odin | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/os/os_haiku.odin b/core/os/os_haiku.odin index ad98f05ba..e29d004b6 100644 --- a/core/os/os_haiku.odin +++ b/core/os/os_haiku.odin @@ -424,5 +424,7 @@ get_env :: proc(key: string, allocator := context.allocator) -> (value: string) @(private) _processor_core_count :: proc() -> int { - return int(_sysconf(_SC_NPROCESSORS_ONLN)) + info: haiku.system_info + haiku.get_system_info(&info) + return int(info.cpu_count) }