From e288c546996d202e87168f25d689a2f21fe03b60 Mon Sep 17 00:00:00 2001 From: Michael Dusan Date: Thu, 17 Aug 2023 10:50:52 -0400 Subject: std.debug: openbsd does not have getcontext --- lib/std/debug.zig | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/std/debug.zig') diff --git a/lib/std/debug.zig b/lib/std/debug.zig index 0657d667c2..7a32271953 100644 --- a/lib/std/debug.zig +++ b/lib/std/debug.zig @@ -168,6 +168,7 @@ pub fn relocateContext(context: *ThreadContext) void { } pub const have_getcontext = @hasDecl(os.system, "getcontext") and + builtin.os.tag != .openbsd and (builtin.os.tag != .linux or switch (builtin.cpu.arch) { .x86, .x86_64, -- cgit v1.2.3