Skip to content

Commit 87a7162

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

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
@@ -15,13 +15,10 @@ use miette::{IntoDiagnostic, Result};
1515
use nix::sys::signal::{self, Signal};
1616
use nix::unistd::{Gid, Group, Pid, Uid, User};
1717
use openshell_core::policy::{NetworkMode, SandboxPolicy};
18-
use std::collections::{BTreeSet, HashMap};
19-
#[cfg(not(any(
20-
target_os = "macos",
21-
target_os = "ios",
22-
target_os = "haiku",
23-
target_os = "redox"
24-
)))]
18+
#[cfg(unix)]
19+
use std::collections::BTreeSet;
20+
use std::collections::HashMap;
21+
#[cfg(target_os = "linux")]
2522
use std::ffi::CString;
2623
#[cfg(unix)]
2724
use std::os::fd::AsRawFd;

0 commit comments

Comments
 (0)