diff options
| author | LemonBoy <thatlemon@gmail.com> | 2020-12-13 20:36:34 +0100 |
|---|---|---|
| committer | LemonBoy <thatlemon@gmail.com> | 2020-12-13 20:36:34 +0100 |
| commit | bb72b0e800518863f4bd7fc459fedb7f90d8e9e5 (patch) | |
| tree | d9b98d05e419c9f88371d76ab3652fef9e3ab6f6 /lib | |
| parent | 97ba3d9a6604a4ac4a92891beb19ec5889bd15ac (diff) | |
| download | zig-bb72b0e800518863f4bd7fc459fedb7f90d8e9e5.tar.gz zig-bb72b0e800518863f4bd7fc459fedb7f90d8e9e5.zip | |
Fix compilation error on FreeBSD
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/std/os/bits/freebsd.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/std/os/bits/freebsd.zig b/lib/std/os/bits/freebsd.zig index e7cfc2a784..6378dcaf8d 100644 --- a/lib/std/os/bits/freebsd.zig +++ b/lib/std/os/bits/freebsd.zig @@ -736,9 +736,9 @@ pub const winsize = extern struct { const NSIG = 32; -pub const SIG_ERR = @intToPtr(fn (i32) callconv(.C) void, maxInt(usize)); -pub const SIG_DFL = @intToPtr(fn (i32) callconv(.C) void, 0); -pub const SIG_IGN = @intToPtr(fn (i32) callconv(.C) void, 1); +pub const SIG_ERR = @intToPtr(?Sigaction.sigaction_fn, maxInt(usize)); +pub const SIG_DFL = @intToPtr(?Sigaction.sigaction_fn, 0); +pub const SIG_IGN = @intToPtr(?Sigaction.sigaction_fn, 1); /// Renamed from `sigaction` to `Sigaction` to avoid conflict with the syscall. pub const Sigaction = extern struct { |
