From 044e8a5368799810671e99c12c5a55cb9471ab81 Mon Sep 17 00:00:00 2001 From: Daniel Bokser Date: Sat, 27 Jul 2024 17:14:46 -0400 Subject: [PATCH] Fixed struct 'posix.system__struct_6652' has no member named 'MSF' compile error for other OS target --- lib/std/debug.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/debug.zig b/lib/std/debug.zig index 31321d62fd03..9643f4c39549 100644 --- a/lib/std/debug.zig +++ b/lib/std/debug.zig @@ -844,7 +844,7 @@ pub const StackIterator = struct { const have_msync = switch (native_os) { .wasi, .emscripten, .windows => false, - else => true, + else => posix.system.ucontext_t != void, }; pub fn writeCurrentStackTrace(