소스 검색

aya-obj: fix compilation with nightly

Alessandro Decina 1 년 전
부모
커밋
dfbe120
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      aya-obj/src/generated/mod.rs

+ 3 - 1
aya-obj/src/generated/mod.rs

@@ -18,7 +18,9 @@ mod linux_bindings_riscv64;
 #[cfg(target_arch = "x86_64")]
 mod linux_bindings_x86_64;
 
-pub use btf_internal_bindings::*;
+// don't re-export __u8 __u16 etc which are already exported by the
+// linux_bindings_* module
+pub use btf_internal_bindings::{bpf_core_relo, bpf_core_relo_kind, btf_ext_header};
 
 #[cfg(target_arch = "x86_64")]
 pub use linux_bindings_x86_64::*;