mirror of
https://github.com/ziglang/zig.git
synced 2026-02-14 13:30:45 +00:00
Seccomp fixups re: #10717
- Add type annotation for AUDIT.current. - Make unsupported archs a compile error.
This commit is contained in:
parent
a242906696
commit
2409041e62
@ -5421,7 +5421,7 @@ pub const AUDIT = struct {
|
||||
const _64BIT = 0x80000000;
|
||||
const _LE = 0x40000000;
|
||||
|
||||
pub const current = switch (native_arch) {
|
||||
pub const current: AUDIT.ARCH = switch (native_arch) {
|
||||
.i386 => .I386,
|
||||
.x86_64 => .X86_64,
|
||||
.aarch64 => .AARCH64,
|
||||
@ -5433,7 +5433,7 @@ pub const AUDIT = struct {
|
||||
.powerpc => .PPC,
|
||||
.powerpc64 => .PPC64,
|
||||
.powerpc64le => .PPC64LE,
|
||||
else => undefined,
|
||||
else => @compileError("unsupported architecture"),
|
||||
};
|
||||
|
||||
AARCH64 = toAudit(.aarch64),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user