mirror of
https://github.com/uutils/coreutils
synced 2024-09-06 07:54:05 +00:00
Merge pull request #988 from wimh/who_rpi
who: fix build on raspberry pi 2
This commit is contained in:
commit
20525a8a6c
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue