@@ -1992,6 +1992,16 @@ fn test_freebsd(target: &str) {
19921992 }
19931993 } ) ;
19941994
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+
19952005 cfg. skip_struct ( move |ty| {
19962006 if ty. starts_with ( "__c_anonymous_" ) {
19972007 return true ;
@@ -2085,6 +2095,21 @@ fn test_freebsd(target: &str) {
20852095 // a_un field is a union
20862096 ( "Elf32_Auxinfo" , "a_un" ) => true ,
20872097 ( "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 ,
20882113 _ => false ,
20892114 }
20902115 } ) ;
0 commit comments