mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 23:58:50 +00:00
Fix use of errno on OpenBSD.
This commit is contained in:
@@ -9,7 +9,7 @@ foreign libc {
|
|||||||
@(link_name="write")
|
@(link_name="write")
|
||||||
_unix_write :: proc(fd: i32, buf: rawptr, size: int) -> int ---
|
_unix_write :: proc(fd: i32, buf: rawptr, size: int) -> int ---
|
||||||
|
|
||||||
when ODIN_OS == .NetBSD {
|
when ODIN_OS == .NetBSD || ODIN_OS == .OpenBSD {
|
||||||
@(link_name="__errno") __error :: proc() -> ^i32 ---
|
@(link_name="__errno") __error :: proc() -> ^i32 ---
|
||||||
} else {
|
} else {
|
||||||
__error :: proc() -> ^i32 ---
|
__error :: proc() -> ^i32 ---
|
||||||
|
|||||||
@@ -343,7 +343,7 @@ AT_REMOVEDIR :: 0x08
|
|||||||
|
|
||||||
@(default_calling_convention="c")
|
@(default_calling_convention="c")
|
||||||
foreign libc {
|
foreign libc {
|
||||||
@(link_name="__error") __error :: proc() -> ^c.int ---
|
@(link_name="__errno") __error :: proc() -> ^c.int ---
|
||||||
|
|
||||||
@(link_name="fork") _unix_fork :: proc() -> pid_t ---
|
@(link_name="fork") _unix_fork :: proc() -> pid_t ---
|
||||||
@(link_name="getthrid") _unix_getthrid :: proc() -> int ---
|
@(link_name="getthrid") _unix_getthrid :: proc() -> int ---
|
||||||
|
|||||||
Reference in New Issue
Block a user