This commit is contained in:
Jeroen van Rijn
2025-10-28 19:40:04 +01:00
parent d7124fef16
commit b7750d818b
3 changed files with 13 additions and 2 deletions

View File

@@ -1,5 +1,8 @@
#+private
#+build freebsd
package os2
import "core:c"
foreign import libc "system:c"
foreign import dl "system:dl"

View File

@@ -1,9 +1,12 @@
#+private
#+build netbsd
package os2
import "core:c"
foreign import libc "system:c"
@(private)
foreign libc {
_lwp_self :: proc() -> i32 ---
_lwp_self :: proc() -> i32 ---
@(link_name="sysctlbyname")
@@ -12,7 +15,7 @@ foreign libc {
@(require_results)
_get_current_thread_id :: proc "contextless" () -> int {
}
return int(_lwp_self())
}
_get_processor_core_count :: proc() -> int {

View File

@@ -1,5 +1,10 @@
#+private
#+build openbsd
package os2
import "core:c"
foreign import libc "system:c"
@(default_calling_convention="c")
foreign libc {