From dfe7f83956f6fd3c858e90044508bc43bc4db638 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Fri, 16 Oct 2026 21:22:14 +0200 Subject: [PATCH] std.c.openbsd: fix PTHREAD_STACK_MIN constant --- lib/std/c/openbsd.zig | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/std/c/openbsd.zig b/lib/std/c/openbsd.zig index 3dfbd2799a567711fbd7d0d9a2190be15346d499..fded9262aa84223647689b351f71df6cec2c3e66 100644 --- a/lib/std/c/openbsd.zig +++ b/lib/std/c/openbsd.zig @@ -290,11 +290,7 @@ pub const MAX_PAGE_SHIFT = switch (builtin.cpu.arch) { .sparc64 => 13, }; -pub const PTHREAD_STACK_MIN = switch (builtin.cpu.arch) { - .sparc64 => 1 << 13, - .mips64 => 1 << 14, - else => 1 << 12, -}; +pub const PTHREAD_STACK_MIN = 1 << MAX_PAGE_SHIFT; // https://github.com/openbsd/src/blob/718a31b40d39fc6064de6355eb144e74633133fc/sys/netinet/in.h#L283 pub const IP = struct { -- 2.54.0