1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-11-04 20:37:56 +00:00

fix: Fix compilation on iOS targets

This commit is contained in:
aspen 2020-09-29 15:17:20 -04:00 committed by Matan Kushner
parent d8dcf04cff
commit 7c15b26ac9

View File

@ -32,7 +32,7 @@ pub fn is_write_allowed(folder_path: &Path) -> Result<bool, &'static str> {
}
}
#[cfg(all(unix, not(target_os = "macos")))]
#[cfg(all(unix, not(any(target_os = "macos", target_os = "ios"))))]
fn get_supplementary_groups() -> Vec<u32> {
match nix::unistd::getgroups() {
Err(_) => Vec::new(),
@ -40,7 +40,7 @@ fn get_supplementary_groups() -> Vec<u32> {
}
}
#[cfg(all(unix, target_os = "macos"))]
#[cfg(all(unix, any(target_os = "macos", target_os = "ios")))]
fn get_supplementary_groups() -> Vec<u32> {
// at the moment nix crate does not provide it for macOS
Vec::new()