File tree 3 files changed +9
-0
lines changed
3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -408,6 +408,9 @@ fn test_apple(target: &str) {
408
408
( "ifreq" , "ifr_ifru" ) => true ,
409
409
( "ifkpi" , "ifk_data" ) => true ,
410
410
( "ifconf" , "ifc_ifcu" ) => true ,
411
+ // FIXME: this field has been incorporated into a resized `rmx_filler` array.
412
+ ( "rt_metrics" , "rmx_state" ) => true ,
413
+ ( "rt_metrics" , "rmx_filler" ) => true ,
411
414
_ => false ,
412
415
}
413
416
} ) ;
Original file line number Diff line number Diff line change 509
509
pub rmx_rtt: u32 ,
510
510
pub rmx_rttvar: u32 ,
511
511
pub rmx_pksent: u32 ,
512
+ /// This field does not exist anymore, the u32 is now part of a resized
513
+ /// `rmx_filler` array.
512
514
pub rmx_state: u32 ,
513
515
pub rmx_filler: [ u32 ; 3 ] ,
514
516
}
Original file line number Diff line number Diff line change @@ -366,10 +366,14 @@ pub const _SC_PAGE_SIZE: ::c_int = _SC_PAGESIZE;
366
366
pub const _SC_IOV_MAX: c_int = 60 ;
367
367
pub const _SC_SYMLOOP_MAX: c_int = 173 ;
368
368
369
+ #[ allow( unused_unsafe) ] // `addr_of!(EXTERN_STATIC)` is now safe; remove `unsafe` when MSRV >= 1.82
369
370
pub static CLOCK_MONOTONIC : clockid_t = unsafe { clockid_t ( ptr_addr_of ! ( _CLOCK_MONOTONIC) ) } ;
371
+ #[ allow( unused_unsafe) ]
370
372
pub static CLOCK_PROCESS_CPUTIME_ID : clockid_t =
371
373
unsafe { clockid_t ( ptr_addr_of ! ( _CLOCK_PROCESS_CPUTIME_ID) ) } ;
374
+ #[ allow( unused_unsafe) ]
372
375
pub static CLOCK_REALTIME : clockid_t = unsafe { clockid_t ( ptr_addr_of ! ( _CLOCK_REALTIME) ) } ;
376
+ #[ allow( unused_unsafe) ]
373
377
pub static CLOCK_THREAD_CPUTIME_ID : clockid_t =
374
378
unsafe { clockid_t ( ptr_addr_of ! ( _CLOCK_THREAD_CPUTIME_ID) ) } ;
375
379
You can’t perform that action at this time.
0 commit comments