Skip to content

Commit 7739545

Browse files
孙冰alexrp
孙冰
authored andcommitted
1 parent 982c500 commit 7739545

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/std/c.zig

+4-1
Original file line numberDiff line numberDiff line change
@@ -2512,7 +2512,10 @@ pub const SC = switch (native_os) {
25122512
else => void,
25132513
};
25142514

2515-
pub const _SC = switch (native_os) {
2515+
pub const _SC = if (builtin.abi.isAndroid()) enum(c_int) {
2516+
PAGESIZE = 39,
2517+
NPROCESSORS_ONLN = 97,
2518+
} else switch (native_os) {
25162519
.driverkit, .ios, .macos, .tvos, .visionos, .watchos => enum(c_int) {
25172520
PAGESIZE = 29,
25182521
},

0 commit comments

Comments
 (0)