There was an error while loading. Please reload this page.
1 parent 444b315 commit a883d54Copy full SHA for a883d54
1 file changed
src/unix/utimes.rs
@@ -121,6 +121,9 @@ fn to_timeval(ft: &FileTime) -> libc::timeval {
121
fn to_timespec(ft: &FileTime) -> libc::timespec {
122
libc::timespec {
123
tv_sec: ft.seconds() as libc::time_t,
124
- tv_nsec: (ft.nanoseconds()) as libc::suseconds_t,
+ #[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
125
+ tv_nsec: (ft.nanoseconds()) as i64,
126
+ #[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
127
+ tv_nsec: (ft.nanoseconds()) as libc::c_long
128
}
129
0 commit comments