fix windows build

This commit is contained in:
dixeran authored and Wez Furlong committed 2022-01-17 13:08:41 -07:00
1 parent 1a73a2feaa
commit 071aefc822
1 file changed
+6
+6
View File
@@ -78,6 +78,11 @@ impl Child for TmuxPty {
fn process_id(&self) -> Option<u32> {
Some(0)
}
#[cfg(windows)]
fn as_raw_handle(&self) -> Option<std::os::windows::io::RawHandle> {
None
}
}
impl MasterPty for TmuxPty {
@@ -112,6 +117,7 @@ impl MasterPty for TmuxPty {
}))
}
#[cfg(unix)]
fn process_group_leader(&self) -> Option<libc::pid_t> {
return None;
}