diff options
-rw-r--r-- | Cargo.toml | 1 | ||||
-rw-r--r-- | src/remapper.rs | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -13,3 +13,4 @@ structopt = "0.3" serde = { version="1.0", features=["derive"]} thiserror = "1.0" toml = "0.5" +libc = "0.2" diff --git a/src/remapper.rs b/src/remapper.rs index b33c0e2..0e90697 100644 --- a/src/remapper.rs +++ b/src/remapper.rs @@ -35,7 +35,7 @@ impl KeyEventType { } fn timeval_diff(newer: &TimeVal, older: &TimeVal) -> Duration { - const MICROS_PER_SECOND: i64 = 1000000; + const MICROS_PER_SECOND: libc::time_t = 1000000; let secs = newer.tv_sec - older.tv_sec; let usecs = newer.tv_usec - older.tv_usec; |