Skip to content

Commit

Permalink
Fix build: Add namespace to BPF_FUNC_override_return
Browse files Browse the repository at this point in the history
  • Loading branch information
ajor committed Jan 22, 2020
1 parent b83b51d commit b6de734
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/ast/irbuilderbpf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -691,9 +691,8 @@ void IRBuilderBPF::CreateOverrideReturn(Value *ctx, Value *rc)
getInt64Ty(), { getInt8PtrTy(), getInt64Ty() }, false);
PointerType *override_func_ptr_type = PointerType::get(override_func_type, 0);
Constant *override_func = ConstantExpr::getCast(Instruction::IntToPtr,
getInt64(
BPF_FUNC_override_return),
override_func_ptr_type);
getInt64(libbpf::BPF_FUNC_override_return),
override_func_ptr_type);
CreateCall(override_func, { ctx, rc }, "override_return");
}

Expand Down

0 comments on commit b6de734

Please sign in to comment.