From 479fd2f7215e504da173356eeb80b356f074a37f Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 31 Jul 2023 11:54:27 -0700 Subject: [PATCH] std.c.openbsd: add PTHREAD_STACK_MIN @semarie audited this definition. --- lib/std/c/openbsd.zig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/std/c/openbsd.zig b/lib/std/c/openbsd.zig index 341426ce62..553b6a2c52 100644 --- a/lib/std/c/openbsd.zig +++ b/lib/std/c/openbsd.zig @@ -1635,3 +1635,9 @@ pub const HW = struct { pub const NCPUONLINE = 25; pub const POWER = 26; }; + +pub const PTHREAD_STACK_MIN = switch (builtin.cpu.arch) { + .sparc64 => 1 << 13, + .mips64 => 1 << 14, + else => 1 << 12, +};