mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-08-04 06:57:47 +00:00
who: use i64 instead of time_t
fixes build on raspberry pi 2 (armv7-unknown-linux-gnueabihf)
This commit is contained in:
parent
783daa5839
commit
4f91662057
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue