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;
15
15
pub type fsblkcnt64_t = u64 ;
16
16
pub type fsfilcnt64_t = u64 ;
17
17
pub type __syscall_ulong_t = c_ulong ;
18
+ pub type __suseconds64_t = i64 ;
18
19
19
20
cfg_if ! {
20
21
if #[ cfg( target_arch = "riscv32" ) ] {
Original file line number Diff line number Diff line change 56
56
pub modtime: time_t,
57
57
}
58
58
59
- // FIXME(time): Needs updates at least for glibc _TIME_BITS=64
60
59
pub struct timeval {
61
60
pub tv_sec: time_t,
61
+ #[ cfg( not( gnu_time_bits64) ) ]
62
62
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,
63
67
}
64
68
65
69
// linux x32 compatibility
You can’t perform that action at this time.
0 commit comments