File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed
src/unix/bsd/freebsdlike/freebsd Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -365,9 +365,13 @@ s! {
365
365
}
366
366
367
367
pub struct cpuset_t {
368
- #[ cfg( target_pointer_width = "64" ) ]
368
+ #[ cfg( all( freebsd14, target_pointer_width = "64" ) ) ]
369
+ __bits: [ :: c_long; 16 ] ,
370
+ #[ cfg( all( freebsd14, target_pointer_width = "32" ) ) ]
371
+ __bits: [ :: c_long; 32 ] ,
372
+ #[ cfg( all( not( freebsd14) , target_pointer_width = "64" ) ) ]
369
373
__bits: [ :: c_long; 4 ] ,
370
- #[ cfg( target_pointer_width = "32" ) ]
374
+ #[ cfg( all ( not ( freebsd14 ) , target_pointer_width = "32" ) ) ]
371
375
__bits: [ :: c_long; 8 ] ,
372
376
}
373
377
@@ -2615,7 +2619,13 @@ pub const DEVSTAT_N_TRANS_FLAGS: ::c_int = 4;
2615
2619
pub const DEVSTAT_NAME_LEN : :: c_int = 16 ;
2616
2620
2617
2621
// sys/cpuset.h
2618
- pub const CPU_SETSIZE : :: c_int = 256 ;
2622
+ cfg_if ! {
2623
+ if #[ cfg( freebsd14) ] {
2624
+ pub const CPU_SETSIZE : :: c_int = 1024 ;
2625
+ } else {
2626
+ pub const CPU_SETSIZE : :: c_int = 256 ;
2627
+ }
2628
+ }
2619
2629
2620
2630
pub const SIGEV_THREAD_ID : :: c_int = 4 ;
2621
2631
You can’t perform that action at this time.
0 commit comments