Fix types for BSD

This commit is contained in:
gingerBill committed 2024-01-28 23:27:30 +00:00
1 parent 38af752cd1
commit 6da82e038d
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -305,7 +305,7 @@ is_path_separator :: proc(r: rune) -> bool {
} }
get_last_error :: proc "contextless" () -> int { get_last_error :: proc "contextless" () -> int {
return __errno_location()^ return int(__errno_location()^)
} }
open :: proc(path: string, flags: int = O_RDONLY, mode: int = 0) -> (Handle, Errno) { open :: proc(path: string, flags: int = O_RDONLY, mode: int = 0) -> (Handle, Errno) {
+1 -1
View File
@@ -296,7 +296,7 @@ is_path_separator :: proc(r: rune) -> bool {
} }
get_last_error :: proc "contextless" () -> int { get_last_error :: proc "contextless" () -> int {
return __error()^ return int(__error()^)
} }
fork :: proc() -> (Pid, Errno) { fork :: proc() -> (Pid, Errno) {