fixed bpf namespace

This commit is contained in:
Matt Knight 2020-08-20 18:54:41 -07:00 committed by Andrew Kelley
parent bc1536f4bf
commit 80fabe1850
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ pub usingnamespace switch (builtin.arch) {
};
pub usingnamespace @import("linux/netlink.zig");
pub const bpf = @import("linux/bpf.zig");
pub const BPF = @import("linux/bpf.zig");
const is_mips = builtin.arch.isMIPS();

View File

@ -1221,7 +1221,7 @@ pub fn copy_file_range(fd_in: fd_t, off_in: ?*i64, fd_out: fd_t, off_out: ?*i64,
);
}
pub fn bpf_syscall(cmd: bpf.Cmd, attr: *bpf.Attr, size: u32) usize {
pub fn bpf(cmd: BPF.Cmd, attr: *BPF.Attr, size: u32) usize {
return syscall3(.bpf, @enumToInt(cmd), @ptrToInt(attr), size);
}