mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-07 14:24:43 +00:00
std.c: fix sysconf names (std.c._SC) for android api
c.f. https://android.googlesource.com/platform/bionic/+/refs/heads/main/libc/include/bits/sysconf.h
This commit is contained in:
parent
22b7d02282
commit
99b5a4f294
1 changed files with 4 additions and 1 deletions
|
|
@ -2269,7 +2269,10 @@ pub const SC = switch (native_os) {
|
|||
else => void,
|
||||
};
|
||||
|
||||
pub const _SC = switch (native_os) {
|
||||
pub const _SC = if (builtin.abi.isAndroid()) enum(c_int) {
|
||||
PAGESIZE = 39,
|
||||
NPROCESSORS_ONLN = 97,
|
||||
} else switch (native_os) {
|
||||
.driverkit, .ios, .macos, .tvos, .visionos, .watchos => enum(c_int) {
|
||||
PAGESIZE = 29,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue