1
1
mirror of https://github.com/wez/wezterm.git synced 2024-08-17 10:10:23 +03:00

fix macos build

This commit is contained in:
Wez Furlong 2019-07-16 07:06:50 -07:00
parent 33933ec523
commit b9ae1a709d
2 changed files with 17 additions and 5 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "filedescriptor"
version = "0.5.0"
version = "0.5.1"
authors = ["Wez Furlong"]
edition = "2018"
repository = "https://github.com/wez/wzsh"

View File

@ -244,10 +244,16 @@ impl Pipe {
)
} else {
let mut read = FileDescriptor {
handle: OwnedHandle { handle: fds[0] },
handle: OwnedHandle {
handle: fds[0],
handle_type: (),
},
};
let mut write = FileDescriptor {
handle: OwnedHandle { handle: fds[1] },
handle: OwnedHandle {
handle: fds[1],
handle_type: (),
},
};
read.handle.cloexec()?;
write.handle.cloexec()?;
@ -302,10 +308,16 @@ pub fn socketpair_impl() -> Fallible<(FileDescriptor, FileDescriptor)> {
)
} else {
let mut read = FileDescriptor {
handle: OwnedHandle { handle: fds[0] },
handle: OwnedHandle {
handle: fds[0],
handle_type: (),
},
};
let mut write = FileDescriptor {
handle: OwnedHandle { handle: fds[1] },
handle: OwnedHandle {
handle: fds[1],
handle_type: (),
},
};
read.handle.cloexec()?;
write.handle.cloexec()?;