From 4f916620574c087991a55f55716b19d05216f01b Mon Sep 17 00:00:00 2001 From: Wim Hueskes Date: Sat, 3 Sep 2016 22:18:10 +0200 Subject: [PATCH] who: use i64 instead of time_t fixes build on raspberry pi 2 (armv7-unknown-linux-gnueabihf) --- src/who/who.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/who/who.rs b/src/who/who.rs index 29a6e7ee5..3c85774f3 100644 --- a/src/who/who.rs +++ b/src/who/who.rs @@ -12,7 +12,7 @@ #[macro_use] extern crate uucore; use uucore::utmpx::{self, time, Utmpx}; -use uucore::libc::{STDIN_FILENO, time_t, ttyname, S_IWGRP}; +use uucore::libc::{STDIN_FILENO, ttyname, S_IWGRP}; use std::borrow::Cow; use std::io::prelude::*; @@ -244,7 +244,7 @@ struct Who { args: Vec, } -fn idle_string<'a>(when: time_t, boottime: time_t) -> Cow<'a, str> { +fn idle_string<'a>(when: i64, boottime: i64) -> Cow<'a, str> { thread_local! { static NOW: time::Tm = time::now() }