diff options
| author | Sébastien Marie <semarie@online.fr> | 2022-02-25 08:49:25 +0000 |
|---|---|---|
| committer | Sébastien Marie <semarie@online.fr> | 2022-02-25 08:49:25 +0000 |
| commit | 5676c9e7ebcec9af526c59ece1faf2e8b15e457c (patch) | |
| tree | e55736f4c0d291caac7c90d6184baf7cdadf1fcd /core/path/filepath | |
| parent | 3a469dc13ec27fc77a408d823d501c7ad1da1811 (diff) | |
initial OpenBSD support
Diffstat (limited to 'core/path/filepath')
| -rw-r--r-- | core/path/filepath/path_unix.odin | 7 |
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 { |