maybe fix build on freebsd
This commit is contained in:
1 parent
6ea24e7516
commit
d350709d2f
2 files changed
+6
-1
No files matched your search
+3
-1
@@ -26,7 +26,6 @@ ratelim= { path = "../ratelim" }
|
||||
regex = "1"
|
||||
serde = {version="1.0", features = ["rc", "derive"]}
|
||||
ssh2 = "0.9"
|
||||
sysinfo = "0.16"
|
||||
terminfo = "0.7"
|
||||
termwiz = { path = "../termwiz" }
|
||||
textwrap = "0.13"
|
||||
@@ -35,3 +34,6 @@ tmux-cc = { path = "../tmux-cc" }
|
||||
unicode-segmentation = "1.7"
|
||||
url = "2"
|
||||
wezterm-term = { path = "../term", features=["use_serde"] }
|
||||
|
||||
[target.'cfg(all(windows, target_os="linux", target_os="macos"))'.dependencies]
|
||||
sysinfo = "0.16"
|
||||
@@ -595,7 +595,10 @@ impl LocalPane {
|
||||
}
|
||||
|
||||
fn divine_process_list(&self) -> Vec<String> {
|
||||
#[allow(unused_mut)]
|
||||
let mut proc_names = vec![];
|
||||
|
||||
#[cfg(all(windows, target_os = "linux", target_os = "macos"))]
|
||||
if let ProcessState::Running { child, .. } = &*self.process.borrow() {
|
||||
if let Some(pid) = child.process_id() {
|
||||
use sysinfo::{Pid, ProcessExt, RefreshKind, System, SystemExt};
|
||||
|
||||
Reference in new issue
Block a user