From 7c15b26ac977dc2f703f516cfe5cb4002c7d2032 Mon Sep 17 00:00:00 2001 From: aspen Date: Tue, 29 Sep 2020 15:17:20 -0400 Subject: [PATCH] fix: Fix compilation on iOS targets --- src/modules/utils/directory_nix.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/utils/directory_nix.rs b/src/modules/utils/directory_nix.rs index 214e06b6..730d2ad0 100644 --- a/src/modules/utils/directory_nix.rs +++ b/src/modules/utils/directory_nix.rs @@ -32,7 +32,7 @@ pub fn is_write_allowed(folder_path: &Path) -> Result { } } -#[cfg(all(unix, not(target_os = "macos")))] +#[cfg(all(unix, not(any(target_os = "macos", target_os = "ios"))))] fn get_supplementary_groups() -> Vec { match nix::unistd::getgroups() { Err(_) => Vec::new(), @@ -40,7 +40,7 @@ fn get_supplementary_groups() -> Vec { } } -#[cfg(all(unix, target_os = "macos"))] +#[cfg(all(unix, any(target_os = "macos", target_os = "ios")))] fn get_supplementary_groups() -> Vec { // at the moment nix crate does not provide it for macOS Vec::new()