| ... | @@ -103,11 +103,8 @@ pub const PR = linux.PR; | ... | @@ -103,11 +103,8 @@ pub const PR = linux.PR; |
| 103 | | 103 | |
| 104 | pub const _errno = switch (native_abi) { | 104 | pub 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, |