1
1
mirror of https://github.com/wez/wezterm.git synced 2024-09-20 03:09:06 +03:00

maybe fix build on freebsd

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

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"

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};