mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 04:48:20 +00:00
Fixes invalid errno definition for ***-linux-android
This commit is contained in:
parent
3d528161c8
commit
2fefd4ea8e
@ -103,11 +103,8 @@ pub const PR = linux.PR;
|
||||
|
||||
pub const _errno = switch (native_abi) {
|
||||
.android => struct {
|
||||
extern "c" var __errno: c_int;
|
||||
fn getErrno() *c_int {
|
||||
return &__errno;
|
||||
}
|
||||
}.getErrno,
|
||||
extern fn __errno() *c_int;
|
||||
}.__errno,
|
||||
else => struct {
|
||||
extern "c" fn __errno_location() *c_int;
|
||||
}.__errno_location,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user