diff --git a/lib.rs b/lib.rs index c441271..689a43d 100644 --- a/lib.rs +++ b/lib.rs @@ -621,7 +621,7 @@ pub fn boottime() -> Result { tv_usec: 0 }; - #[cfg(target_os = "linux")] + #[cfg(any(target_os = "linux", target_os="android"))] { let mut s = String::new(); File::open("/proc/uptime")?.read_to_string(&mut s)?;