summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDavid Lönnhager <david.l@mullvad.net>2022-04-12 11:41:41 +0200
committerDavid Lönnhager <david.l@mullvad.net>2022-04-12 11:41:41 +0200
commitcfaf5bed07ce7a61093fdd29e77c421a03ad4f5b (patch)
treecdbf666e42a683fcd88359abe0c2209a0d88b1e2
parent330fddb75b7a68d424cf21f62a1be25d309bbe3a (diff)
downloadmullvadvpn-cfaf5bed07ce7a61093fdd29e77c421a03ad4f5b.tar.xz
mullvadvpn-cfaf5bed07ce7a61093fdd29e77c421a03ad4f5b.zip
Use correct nanosecond type on all architectures
-rw-r--r--talpid-time/src/unix.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/talpid-time/src/unix.rs b/talpid-time/src/unix.rs
index b9721dd27a..2360de818d 100644
--- a/talpid-time/src/unix.rs
+++ b/talpid-time/src/unix.rs
@@ -1,7 +1,7 @@
-use libc::{clock_gettime, clockid_t, timespec};
+use libc::{c_long, clock_gettime, clockid_t, timespec};
use std::{mem::MaybeUninit, time::Duration};
-const NSEC_PER_SEC: i64 = 1000000000;
+const NSEC_PER_SEC: c_long = 1000000000;
#[cfg(target_os = "macos")]
const CLOCK_ID: clockid_t = libc::CLOCK_MONOTONIC;