diff options
author | Jan Beich <jbeich@FreeBSD.org> | 2023-01-18 09:21:21 +0000 |
---|---|---|
committer | Jan Beich <jbeich@FreeBSD.org> | 2023-01-18 09:48:57 +0000 |
commit | 3c669015beec34e40194d872d8898351af18f3e8 (patch) | |
tree | b0eaf0149d089821e7168c2a1f0e61abe09284e3 /www | |
parent | 002512f5bdf3002a95ea7e11c656d28ee10b1228 (diff) | |
download | freebsd-ports-3c669015beec34e40194d872d8898351af18f3e8.zip |
lang/zig: unbreak Sigaction.handler_fn on aarch64
$ cat test.zig
const std = @import("std");
const os = std.os;
pub fn main() anyerror!void {
// From https://github.com/riverwm/river/blob/v0.2.2/river/main.zig#L97-L104
const sig_ign = os.Sigaction{
.handler = .{ .handler = os.SIG.IGN },
.mask = os.empty_sigset,
.flags = 0,
};
try os.sigaction(os.SIG.PIPE, &sig_ign, null);
}
$ zig build-exe -target aarch64-freebsd test.zig
/usr/local/lib/zig/std/c/freebsd.zig:702:54: error: pointer type '?*const fn(c_int) callconv(.C) void' requires aligned address
pub const IGN = @intToPtr(?Sigaction.handler_fn, 1);
^
referenced by:
main: test.zig:7:40
comptime_0: /usr/local/lib/zig/std/start.zig:59:50
remaining reference traces hidden; use '-freference-trace' to see all reference traces
Reported by: pkg-fallout (x11-wm/river)
Inspired by: Alpine Linux
Diffstat (limited to 'www')
0 files changed, 0 insertions, 0 deletions