authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-16 21:22:14+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-22 22:15:32+02:00
logdfe7f83956f6fd3c858e90044508bc43bc4db638
tree0e2b8fa75fe231e963c419d546ed35b3891953f2
parent3ffcdb9c3d0e84b3c9d2fa115f3db5d6c988c66c
signature Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.c.openbsd: fix PTHREAD_STACK_MIN constant


1 files changed, 1 insertions(+), 5 deletions(-)

lib/std/c/openbsd.zig+1-5
...@@ -290,11 +290,7 @@ pub const MAX_PAGE_SHIFT = switch (builtin.cpu.arch) {...@@ -290,11 +290,7 @@ pub const MAX_PAGE_SHIFT = switch (builtin.cpu.arch) {
290 .sparc64 => 13,290 .sparc64 => 13,
291};291};
292292
293pub const PTHREAD_STACK_MIN = switch (builtin.cpu.arch) {293pub const PTHREAD_STACK_MIN = 1 << MAX_PAGE_SHIFT;
294 .sparc64 => 1 << 13,
295 .mips64 => 1 << 14,
296 else => 1 << 12,
297};
298294
299// https://github.com/openbsd/src/blob/718a31b40d39fc6064de6355eb144e74633133fc/sys/netinet/in.h#L283295// https://github.com/openbsd/src/blob/718a31b40d39fc6064de6355eb144e74633133fc/sys/netinet/in.h#L283
300pub const IP = struct {296pub const IP = struct {