Skip to content

Commit d0fd891

Browse files
GuillaumeGomezraoulstrackx
authored andcommitted
Skip checks for kvm_t and a few kinfo_proc struct fields
1 parent ee14453 commit d0fd891

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

libc-test/build.rs

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1995,6 +1995,16 @@ fn test_freebsd(target: &str) {
19951995
}
19961996
});
19971997

1998+
cfg.skip_type(move |ty| {
1999+
match ty {
2000+
// the struct "__kvm" is quite tricky to bind so since we only use a pointer to it
2001+
// for now, it doesn't matter too much...
2002+
"kvm_t" => true,
2003+
2004+
_ => false,
2005+
}
2006+
});
2007+
19982008
cfg.skip_struct(move |ty| {
19992009
if ty.starts_with("__c_anonymous_") {
20002010
return true;
@@ -2088,6 +2098,21 @@ fn test_freebsd(target: &str) {
20882098
// a_un field is a union
20892099
("Elf32_Auxinfo", "a_un") => true,
20902100
("Elf64_Auxinfo", "a_un") => true,
2101+
2102+
// FIXME: structs too complicated to bind for now...
2103+
("kinfo_proc", "ki_paddr") => true,
2104+
("kinfo_proc", "ki_addr") => true,
2105+
("kinfo_proc", "ki_tracep") => true,
2106+
("kinfo_proc", "ki_textvp") => true,
2107+
("kinfo_proc", "ki_fd") => true,
2108+
("kinfo_proc", "ki_vmspace") => true,
2109+
("kinfo_proc", "ki_pcb") => true,
2110+
("kinfo_proc", "ki_tdaddr") => true,
2111+
("kinfo_proc", "ki_pd") => true,
2112+
2113+
// We ignore this field because we needed to use a hack in order to make rust 1.19
2114+
// happy...
2115+
("kinfo_proc", "ki_sparestrings") => true,
20912116
_ => false,
20922117
}
20932118
});

0 commit comments

Comments
 (0)