@@ -1876,6 +1876,7 @@ fn test_freebsd(target: &str) {
1876
1876
"sys/vmmeter.h" ,
1877
1877
"sys/wait.h" ,
1878
1878
"libprocstat.h" ,
1879
+ "devstat.h" ,
1879
1880
"syslog.h" ,
1880
1881
"termios.h" ,
1881
1882
"time.h" ,
@@ -1919,6 +1920,7 @@ fn test_freebsd(target: &str) {
1919
1920
// Field is named `type` in C but that is a Rust keyword,
1920
1921
// so these fields are translated to `type_` in the bindings.
1921
1922
"type_" if struct_ == "rtprio" => "type" . to_string ( ) ,
1923
+ "type_" if struct_ == "devstat_match_table" => "type" . to_string ( ) ,
1922
1924
s => s. to_string ( ) ,
1923
1925
}
1924
1926
} ) ;
@@ -2170,6 +2172,10 @@ fn test_freebsd(target: &str) {
2170
2172
// https://github.com/gnzlbg/ctest/issues/68
2171
2173
"lio_listio" => true ,
2172
2174
2175
+ // It returns a `long double`, but it's a nightmare to bind correctly in rust
2176
+ // for the moment, so it's a best effort thing...
2177
+ "devstat_compute_etime" => true ,
2178
+
2173
2179
_ => false ,
2174
2180
}
2175
2181
} ) ;
@@ -2242,6 +2248,11 @@ fn test_freebsd(target: &str) {
2242
2248
2243
2249
// `__sem_base` is a private struct field
2244
2250
( "semid_ds" , "__sem_base" ) => true ,
2251
+
2252
+ // `snap_time` is a `long double`, but it's a nightmare to bind correctly in rust
2253
+ // for the moment, so it's a best effort thing...
2254
+ ( "statinfo" , "snap_time" ) => true ,
2255
+
2245
2256
_ => false ,
2246
2257
}
2247
2258
} ) ;
0 commit comments