| ... | @@ -413,7 +413,12 @@ pub extern "c" fn timer_delete(timerid: c.timer_t) c_int; | ... | @@ -413,7 +413,12 @@ pub extern "c" fn timer_delete(timerid: c.timer_t) c_int; |
| 413 | pub extern "c" fn timer_settime(timerid: c.timer_t, flags: c_int, new_value: *const c.itimerspec, old_value: *c.itimerspec) c_int; | 413 | pub extern "c" fn timer_settime(timerid: c.timer_t, flags: c_int, new_value: *const c.itimerspec, old_value: *c.itimerspec) c_int; |
| 414 | pub extern "c" fn timer_gettime(timerid: c.timer_t, flags: c_int, curr_value: *c.itimerspec) c_int; | 414 | pub extern "c" fn timer_gettime(timerid: c.timer_t, flags: c_int, curr_value: *c.itimerspec) c_int; |
| 415 | | 415 | |
| 416 | pub extern "c" fn getcontext(ucp: *std.os.ucontext_t) c_int; | 416 | pub usingnamespace if (builtin.os.tag == .linux and builtin.target.isMusl()) struct { |
| | 417 | // musl does not implement getcontext |
| | 418 | const getcontext = std.os.linux.getcontext; |
| | 419 | } else struct { |
| | 420 | extern "c" fn getcontext(ucp: *std.os.ucontext_t) c_int; |
| | 421 | }; |
| 417 | | 422 | |
| 418 | pub const max_align_t = if (builtin.abi == .msvc) | 423 | pub const max_align_t = if (builtin.abi == .msvc) |
| 419 | f64 | 424 | f64 |