add haiku to unix

This commit is contained in:
avanspector
2024-02-25 16:50:04 +01:00
parent 2e80879e88
commit dc5cf23066
3 changed files with 10 additions and 2 deletions

View File

@@ -101,3 +101,11 @@ close :: proc(fd: Handle) -> Errno {
}
return ERROR_NONE
}
_alloc_command_line_arguments :: proc() -> []string {
res := make([]string, len(runtime.args__))
for arg, i in runtime.args__ {
res[i] = string(arg)
}
return res
}

View File

@@ -1,4 +1,4 @@
//+build linux, darwin, freebsd, openbsd
//+build linux, darwin, freebsd, openbsd, haiku
package unix
foreign import "system:pthread"

View File

@@ -1,4 +1,4 @@
//+build linux, darwin, freebsd, openbsd
//+build linux, darwin, freebsd, openbsd, haiku
package unix
when ODIN_OS == .Darwin {