std.debug: openbsd does not have getcontext

This commit is contained in:
Michael Dusan 2023-08-17 10:50:52 -04:00
parent c685b675e5
commit e288c54699
No known key found for this signature in database
GPG Key ID: ED4C5BA849FA1B74

View File

@ -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,