mirror of
https://github.com/wez/wezterm.git
synced 2024-09-11 14:25:57 +03:00
fix macos build
This commit is contained in:
parent
33933ec523
commit
b9ae1a709d
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "filedescriptor"
|
name = "filedescriptor"
|
||||||
version = "0.5.0"
|
version = "0.5.1"
|
||||||
authors = ["Wez Furlong"]
|
authors = ["Wez Furlong"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
repository = "https://github.com/wez/wzsh"
|
repository = "https://github.com/wez/wzsh"
|
||||||
|
@ -244,10 +244,16 @@ impl Pipe {
|
|||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
let mut read = FileDescriptor {
|
let mut read = FileDescriptor {
|
||||||
handle: OwnedHandle { handle: fds[0] },
|
handle: OwnedHandle {
|
||||||
|
handle: fds[0],
|
||||||
|
handle_type: (),
|
||||||
|
},
|
||||||
};
|
};
|
||||||
let mut write = FileDescriptor {
|
let mut write = FileDescriptor {
|
||||||
handle: OwnedHandle { handle: fds[1] },
|
handle: OwnedHandle {
|
||||||
|
handle: fds[1],
|
||||||
|
handle_type: (),
|
||||||
|
},
|
||||||
};
|
};
|
||||||
read.handle.cloexec()?;
|
read.handle.cloexec()?;
|
||||||
write.handle.cloexec()?;
|
write.handle.cloexec()?;
|
||||||
@ -302,10 +308,16 @@ pub fn socketpair_impl() -> Fallible<(FileDescriptor, FileDescriptor)> {
|
|||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
let mut read = FileDescriptor {
|
let mut read = FileDescriptor {
|
||||||
handle: OwnedHandle { handle: fds[0] },
|
handle: OwnedHandle {
|
||||||
|
handle: fds[0],
|
||||||
|
handle_type: (),
|
||||||
|
},
|
||||||
};
|
};
|
||||||
let mut write = FileDescriptor {
|
let mut write = FileDescriptor {
|
||||||
handle: OwnedHandle { handle: fds[1] },
|
handle: OwnedHandle {
|
||||||
|
handle: fds[1],
|
||||||
|
handle_type: (),
|
||||||
|
},
|
||||||
};
|
};
|
||||||
read.handle.cloexec()?;
|
read.handle.cloexec()?;
|
||||||
write.handle.cloexec()?;
|
write.handle.cloexec()?;
|
||||||
|
Loading…
Reference in New Issue
Block a user