diff options
| -rw-r--r-- | src/test/ui/command/command-setgroups.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/ui/command/command-setgroups.rs b/src/test/ui/command/command-setgroups.rs index 978c9c44486..3850f038442 100644 --- a/src/test/ui/command/command-setgroups.rs +++ b/src/test/ui/command/command-setgroups.rs @@ -11,6 +11,12 @@ use std::process::Command; use std::os::unix::process::CommandExt; fn main() { + #[cfg(unix)] + run() +} + +#[cfg(unix)] +fn run() { let max_ngroups = unsafe { libc::sysconf(libc::_SC_NGROUPS_MAX) }; let max_ngroups = max_ngroups as u32 + 1; let vec: Vec<u32> = (0..max_ngroups).collect(); |
