Fix getgroups on android

This commit is contained in:
coolreader18
2019-08-26 20:24:04 -05:00
parent 9168455b12
commit 2ec6eb7d71

View File

@@ -294,7 +294,7 @@ fn getgroups() -> nix::Result<Vec<Gid>> {
}
}
#[cfg(any(target_os = "linux", target_os = "redox"))]
#[cfg(any(target_os = "linux", target_os = "redox", target_os = "android"))]
fn getgroups() -> nix::Result<Vec<Gid>> {
nix::unistd::getgroups()
}