Merge pull request #988 from wimh/who_rpi

who: fix build on raspberry pi 2
This commit is contained in:
Nathan Ross 2016-09-03 18:23:41 -04:00 committed by GitHub
commit 20525a8a6c

View file

@ -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<String>,
}
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()
}