File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ pub type __fsword_t = i32;
1515pub type fsblkcnt64_t = u64 ;
1616pub type fsfilcnt64_t = u64 ;
1717pub type __syscall_ulong_t = c_ulong ;
18+ pub type __suseconds64_t = i64 ;
1819
1920cfg_if ! {
2021 if #[ cfg( target_arch = "riscv32" ) ] {
Original file line number Diff line number Diff line change 5656 pub modtime: time_t,
5757 }
5858
59- // FIXME(time): Needs updates at least for glibc _TIME_BITS=64
6059 pub struct timeval {
6160 pub tv_sec: time_t,
61+ #[ cfg( not( gnu_time_bits64) ) ]
6262 pub tv_usec: suseconds_t,
63+ // For 64 bit time on 32 bit linux glibc, suseconds_t is still
64+ // a 32 bit type. Use __suseconds64_t instead
65+ #[ cfg( gnu_time_bits64) ]
66+ pub tv_usec: __suseconds64_t,
6367 }
6468
6569 // linux x32 compatibility
You can’t perform that action at this time.
0 commit comments