maybe fix build on freebsd

This commit is contained in:
Wez Furlong committed 2021-03-22 22:14:55 -07:00
1 parent 6ea24e7516
commit d350709d2f
2 files changed
+6 -1

No files matched your search

+3 -1
View File
@@ -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"
+3
View File
@@ -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};