authorgravatar for xq@random-projects.netFelix "xq" Queißner <xq@random-projects.net> 2021-11-18 15:42:36+01:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-11-18 12:58:28-05:00
log2fefd4ea8e031e82e5d9228638dc48aa213a102e
treee3d5afd6f94b6da4704e7e986de334d52956dbc7
parent3d528161c80c753a9b00cae84cae245526b29c10

Fixes invalid errno definition for ***-linux-android


1 files changed, 2 insertions(+), 5 deletions(-)

lib/std/c/linux.zig+2-5
...@@ -103,11 +103,8 @@ pub const PR = linux.PR;...@@ -103,11 +103,8 @@ pub const PR = linux.PR;
103103
104pub const _errno = switch (native_abi) {104pub const _errno = switch (native_abi) {
105 .android => struct {105 .android => struct {
106 extern "c" var __errno: c_int;106 extern fn __errno() *c_int;
107 fn getErrno() *c_int {107 }.__errno,
108 return &__errno;
109 }
110 }.getErrno,
111 else => struct {108 else => struct {
112 extern "c" fn __errno_location() *c_int;109 extern "c" fn __errno_location() *c_int;
113 }.__errno_location,110 }.__errno_location,