aboutsummaryrefslogtreecommitdiff
path: root/core/os/os_linux.odin
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-09-19 15:13:05 +0100
committergingerBill <bill@gingerbill.org>2023-09-19 15:13:05 +0100
commit6257d0e1a9d9107043e13af410228a298d14abcb (patch)
tree35677554f24da2d66c8fb0c96893a2fc04189b00 /core/os/os_linux.odin
parentb2f1c58321a21c3376e6ba329bdf928da5fabc94 (diff)
parentecde06e3a31179bd8f86383fd65cfbce31ab6d9a (diff)
Merge branch 'master' into windows-llvm-11.1.0windows-llvm-11.1.0
Diffstat (limited to 'core/os/os_linux.odin')
-rw-r--r--core/os/os_linux.odin4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/os/os_linux.odin b/core/os/os_linux.odin
index 1a4c1fddb..51a14ab44 100644
--- a/core/os/os_linux.odin
+++ b/core/os/os_linux.odin
@@ -441,7 +441,7 @@ pollfd :: struct {
sigset_t :: distinct u64
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="get_nprocs") _unix_get_nprocs :: proc() -> c.int ---
@@ -488,7 +488,7 @@ _get_errno :: proc(res: int) -> Errno {
// get errno from libc
get_last_error :: proc "contextless" () -> int {
- return __errno_location()^
+ return int(__errno_location()^)
}
personality :: proc(persona: u64) -> (Errno) {