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