Skip to content

Commit

Permalink
Fix build for target android
Browse files Browse the repository at this point in the history
  • Loading branch information
YadominJinta authored and FillZpp committed Jul 14, 2020
1 parent b470131 commit 9592865
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ pub fn boottime() -> Result<timeval, Error> {
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)?;
Expand Down

0 comments on commit 9592865

Please sign in to comment.