mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Fix wrong type
This commit is contained in:
@@ -441,7 +441,7 @@ pollfd :: struct {
|
|||||||
sigset_t :: distinct u64
|
sigset_t :: distinct u64
|
||||||
|
|
||||||
foreign libc {
|
foreign libc {
|
||||||
@(link_name="__errno_location") __errno_location :: proc() -> ^int ---
|
@(link_name="__errno_location") __errno_location :: proc() -> ^c.int ---
|
||||||
|
|
||||||
@(link_name="getpagesize") _unix_getpagesize :: proc() -> c.int ---
|
@(link_name="getpagesize") _unix_getpagesize :: proc() -> c.int ---
|
||||||
@(link_name="get_nprocs") _unix_get_nprocs :: proc() -> c.int ---
|
@(link_name="get_nprocs") _unix_get_nprocs :: proc() -> c.int ---
|
||||||
@@ -488,7 +488,7 @@ _get_errno :: proc(res: int) -> Errno {
|
|||||||
|
|
||||||
// get errno from libc
|
// get errno from libc
|
||||||
get_last_error :: proc "contextless" () -> int {
|
get_last_error :: proc "contextless" () -> int {
|
||||||
return __errno_location()^
|
return int(__errno_location()^)
|
||||||
}
|
}
|
||||||
|
|
||||||
personality :: proc(persona: u64) -> (Errno) {
|
personality :: proc(persona: u64) -> (Errno) {
|
||||||
|
|||||||
Reference in New Issue
Block a user