Merge pull request #79 from esrlabs/pr-android

fix: build for aarch64-linux-android
This commit is contained in:
Bin Liu
2022-05-25 23:01:33 +08:00
committed by GitHub

View File

@@ -297,7 +297,10 @@ impl Default for V2 {
pub const UNIFIED_MOUNTPOINT: &str = "/sys/fs/cgroup";
#[cfg(all(target_os = "linux", not(target_env = "musl")))]
#[cfg(any(
all(target_os = "linux", not(target_env = "musl")),
target_os = "android"
))]
pub fn is_cgroup2_unified_mode() -> bool {
use nix::sys::statfs;