mirror of
https://github.com/ziglang/zig.git
synced 2025-12-09 15:53:08 +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
@ -2269,7 +2269,10 @@ pub const SC = switch (native_os) {
|
|||||||
else => void,
|
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) {
|
.driverkit, .ios, .macos, .tvos, .visionos, .watchos => enum(c_int) {
|
||||||
PAGESIZE = 29,
|
PAGESIZE = 29,
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user