File tree 1 file changed +5
-0
lines changed
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -369,10 +369,15 @@ pub const _SC_PAGE_SIZE: ::c_int = _SC_PAGESIZE;
369
369
pub const _SC_IOV_MAX: c_int = 60 ;
370
370
pub const _SC_SYMLOOP_MAX: c_int = 173 ;
371
371
372
+ // unsafe code here is required in the stable, but not in nightly
373
+ #[ allow( unused_unsafe) ]
372
374
pub static CLOCK_MONOTONIC : clockid_t = unsafe { clockid_t ( ptr_addr_of ! ( _CLOCK_MONOTONIC) ) } ;
375
+ #[ allow( unused_unsafe) ]
373
376
pub static CLOCK_PROCESS_CPUTIME_ID : clockid_t =
374
377
unsafe { clockid_t ( ptr_addr_of ! ( _CLOCK_PROCESS_CPUTIME_ID) ) } ;
378
+ #[ allow( unused_unsafe) ]
375
379
pub static CLOCK_REALTIME : clockid_t = unsafe { clockid_t ( ptr_addr_of ! ( _CLOCK_REALTIME) ) } ;
380
+ #[ allow( unused_unsafe) ]
376
381
pub static CLOCK_THREAD_CPUTIME_ID : clockid_t =
377
382
unsafe { clockid_t ( ptr_addr_of ! ( _CLOCK_THREAD_CPUTIME_ID) ) } ;
378
383
You can’t perform that action at this time.
0 commit comments