diff --git a/ctr-std/src/sys/unix/time.rs b/ctr-std/src/sys/unix/time.rs index d28b1f0..e6409ce 100644 --- a/ctr-std/src/sys/unix/time.rs +++ b/ctr-std/src/sys/unix/time.rs @@ -138,8 +138,8 @@ mod inner { let ms = monotonic_ms(); let s = libc::timeval { - tv_sec: (ms / 1_000_000) as i32, - tv_usec: (ms % 1_000_000) as i32, + tv_sec: (ms / 1_000_000) as libc::time_t, + tv_usec: (ms % 1_000_000) as libc::c_long, }; return Instant::from(s) }