Skip to content

Commit 6e38235

Browse files
committed
fix(process): simplify platform-specific imports
Signed-off-by: Evan Lezar <elezar@nvidia.com>
1 parent 12eb147 commit 6e38235

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

‎crates/openshell-supervisor-process/src/process.rs‎

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,10 @@ use miette::{IntoDiagnostic, Result};
1313
use nix::sys::signal::{self, Signal};
1414
use nix::unistd::{Gid, Group, Pid, Uid, User};
1515
use openshell_core::policy::{NetworkMode, SandboxPolicy};
16-
use std::collections::{BTreeSet, HashMap};
17-
#[cfg(not(any(
18-
target_os = "macos",
19-
target_os = "ios",
20-
target_os = "haiku",
21-
target_os = "redox"
22-
)))]
16+
#[cfg(unix)]
17+
use std::collections::BTreeSet;
18+
use std::collections::HashMap;
19+
#[cfg(target_os = "linux")]
2320
use std::ffi::CString;
2421
#[cfg(target_os = "linux")]
2522
use std::os::fd::{AsRawFd, OwnedFd, RawFd};

0 commit comments

Comments
 (0)