commit cb5f76bb1ceb82d68c400b7330b73a8583c0613f (tree)
parent b043a318893ad4e8de1e376ba16be6e3ed201a76
Author: Matt Knight <mattnite@protonmail.com>
Date: Sun, 13 Sep 2020 09:24:56 -0700
got booleans wrong
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/std/os/linux/bpf/kern.zig b/lib/std/os/linux/bpf/kern.zig
@@ -6,8 +6,8 @@
const std = @import("../../../std.zig");
const in_bpf_program = switch (std.builtin.arch) {
- .bpfel, .bpfeb => false,
- else => true,
+ .bpfel, .bpfeb => true,
+ else => false,
};
pub const helpers = if (in_bpf_program) @import("helpers.zig") else struct {};