Browse Source

aya-obj: fix compilation with nightly

Alessandro Decina 1 year ago
parent
commit
dfbe1207c1
1 changed files with 3 additions and 1 deletions
  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::*;