forked from Rust-related/RustPython
Fix getgroups on android
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user