aboutsummaryrefslogtreecommitdiff
path: root/core/path/filepath
diff options
context:
space:
mode:
authorSébastien Marie <semarie@online.fr>2022-02-25 08:49:25 +0000
committerSébastien Marie <semarie@online.fr>2022-02-25 08:49:25 +0000
commit5676c9e7ebcec9af526c59ece1faf2e8b15e457c (patch)
treee55736f4c0d291caac7c90d6184baf7cdadf1fcd /core/path/filepath
parent3a469dc13ec27fc77a408d823d501c7ad1da1811 (diff)
initial OpenBSD support
Diffstat (limited to 'core/path/filepath')
-rw-r--r--core/path/filepath/path_unix.odin7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/path/filepath/path_unix.odin b/core/path/filepath/path_unix.odin
index 3e49c4710..d0eaa3635 100644
--- a/core/path/filepath/path_unix.odin
+++ b/core/path/filepath/path_unix.odin
@@ -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 {