initial OpenBSD support
This commit is contained in:
1 parent
3a469dc13e
commit
5676c9e7eb
30 files changed
+1151
-27
No files matched your search
@@ -1,4 +1,4 @@
|
||||
//+build linux, darwin, freebsd
|
||||
//+build linux, darwin, freebsd, openbsd
|
||||
package filepath
|
||||
|
||||
when ODIN_OS == .Darwin {
|
||||
@@ -59,6 +59,11 @@ when ODIN_OS == .Darwin {
|
||||
foreign libc {
|
||||
@(link_name="__error") __error :: proc() -> ^i32 ---
|
||||
}
|
||||
} else when ODIN_OS == .OpenBSD {
|
||||
@(private)
|
||||
foreign libc {
|
||||
@(link_name="__errno") __error :: proc() -> ^i32 ---
|
||||
}
|
||||
} else {
|
||||
@(private)
|
||||
foreign libc {
|
||||
|
||||
Reference in new issue
Block a user