authorgravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2020-04-01 12:46:16+02:00
committergravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2020-04-01 12:46:16+02:00
log5047cd3d782c51474216eda92ea457315bc4f8b5
treee4b6a58d08aefcd3efed12ab2293843fe86d5d70
parent4209ab90a8a9922bcc407e12b0e58b827a179a91

Workaround for #4789


1 files changed, 6 insertions(+), 4 deletions(-)

lib/std/os/bits/linux.zig+6-4
......@@ -827,15 +827,17 @@ else
827827
828828/// Renamed from `sigaction` to `Sigaction` to avoid conflict with the syscall.
829829pub const Sigaction = extern struct {
830 sigaction: ?extern fn (i32, *siginfo_t, *c_void) void,
830 pub const sigaction_fn = fn (i32, *siginfo_t, ?*c_void) callconv(.C) void;
831 sigaction: ?sigaction_fn,
831832 mask: sigset_t,
832833 flags: u32,
833834 restorer: ?extern fn () void = null,
834835};
835836
836pub const SIG_ERR = @intToPtr(extern fn (i32, *siginfo_t, *c_void) void, maxInt(usize));
837pub const SIG_DFL = @intToPtr(?extern fn (i32, *siginfo_t, *c_void) void, 0);
838pub const SIG_IGN = @intToPtr(extern fn (i32, *siginfo_t, *c_void) void, 1);
837pub const SIG_ERR = @intToPtr(?Sigaction.sigaction_fn, maxInt(usize));
838pub const SIG_DFL = @intToPtr(?Sigaction.sigaction_fn, 0);
839pub const SIG_IGN = @intToPtr(?Sigaction.sigaction_fn, 1);
840
839841pub const empty_sigset = [_]u32{0} ** sigset_t.len;
840842
841843pub const in_port_t = u16;