Skip to content

Commit

Permalink
move ucontext_t from std.os to std.c
Browse files Browse the repository at this point in the history
  • Loading branch information
dimdin committed Mar 21, 2024
1 parent d2c5184 commit 65f958b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/recover.zig
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const Context = if (builtin.os.tag == .windows)
else if (builtin.os.tag == .linux and builtin.abi == .musl)
musl.jmp_buf
else
std.os.ucontext_t;
std.c.ucontext_t;

threadlocal var top_ctx: ?*const Context = null;

Expand Down Expand Up @@ -70,7 +70,7 @@ const WINAPI = std.os.windows.WINAPI;
extern "ntdll" fn RtlRestoreContext(ContextRecord: *const CONTEXT, ExceptionRecord: ?*const EXCEPTION_RECORD) callconv(WINAPI) noreturn;

// darwin, bsd, gnu linux
extern "c" fn setcontext(ucp: *const std.os.ucontext_t) noreturn;
extern "c" fn setcontext(ucp: *const std.c.ucontext_t) noreturn;

// linux musl
const musl = struct {
Expand Down

0 comments on commit 65f958b

Please sign in to comment.