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:
parent
33933ec523
commit
b9ae1a709d
@ -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"
|
||||
|
@ -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()?;
|
||||
|
Loading…
Reference in New Issue
Block a user