@@ -1995,6 +1995,16 @@ fn test_freebsd(target: &str) {
1995
1995
}
1996
1996
} ) ;
1997
1997
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
+
1998
2008
cfg. skip_struct ( move |ty| {
1999
2009
if ty. starts_with ( "__c_anonymous_" ) {
2000
2010
return true ;
@@ -2088,6 +2098,21 @@ fn test_freebsd(target: &str) {
2088
2098
// a_un field is a union
2089
2099
( "Elf32_Auxinfo" , "a_un" ) => true ,
2090
2100
( "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 ,
2091
2116
_ => false ,
2092
2117
}
2093
2118
} ) ;
0 commit comments