diff --git a/lib/std/debug.zig b/lib/std/debug.zig index eaa5ca9ff7c627510c11a71e8435d01743ad5f91..c7d4818e1862d8d23f9b36426b680393e2d39648 100644 --- a/lib/std/debug.zig +++ b/lib/std/debug.zig @@ -228,8 +228,8 @@ pub fn relocateContext(context: *ThreadContext) void { }; } -pub const have_getcontext = @hasDecl(posix.system, "getcontext") and - native_os != .openbsd and native_os != .haiku and +pub const have_getcontext = native_os != .openbsd and native_os != .haiku and + !builtin.target.isAndroid() and (native_os != .linux or switch (builtin.cpu.arch) { .x86, .x86_64,