From bb72b0e800518863f4bd7fc459fedb7f90d8e9e5 Mon Sep 17 00:00:00 2001 From: LemonBoy Date: Sun, 13 Dec 2020 20:36:34 +0100 Subject: Fix compilation error on FreeBSD --- lib/std/os/bits/freebsd.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/std/os') 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 { -- cgit v1.2.3