From 071aefc8227bf463492316acfd6caa4d63eb746f Mon Sep 17 00:00:00 2001 From: dixeran Date: Sun, 19 Sep 2021 11:46:37 +0800 Subject: [PATCH] fix windows build --- mux/src/tmux_pty.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mux/src/tmux_pty.rs b/mux/src/tmux_pty.rs index d9ee78048..78587eb8d 100644 --- a/mux/src/tmux_pty.rs +++ b/mux/src/tmux_pty.rs @@ -78,6 +78,11 @@ impl Child for TmuxPty { fn process_id(&self) -> Option { Some(0) } + + #[cfg(windows)] + fn as_raw_handle(&self) -> Option { + None + } } impl MasterPty for TmuxPty { @@ -112,6 +117,7 @@ impl MasterPty for TmuxPty { })) } + #[cfg(unix)] fn process_group_leader(&self) -> Option { return None; }