Fix types for BSD

This commit is contained in:
gingerBill
2024-01-28 23:27:30 +00:00
parent 38af752cd1
commit 6da82e038d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -305,7 +305,7 @@ is_path_separator :: proc(r: rune) -> bool {
}
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) {
+1 -1
View File
@@ -296,7 +296,7 @@ is_path_separator :: proc(r: rune) -> bool {
}
get_last_error :: proc "contextless" () -> int {
return __error()^
return int(__error()^)
}
fork :: proc() -> (Pid, Errno) {