From b9ae1a709de4f39d48e183968f42147880e62c22 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Tue, 16 Jul 2019 07:06:50 -0700 Subject: [PATCH] fix macos build --- filedescriptor/Cargo.toml | 2 +- filedescriptor/src/unix.rs | 20 ++++++++++++++++---- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/filedescriptor/Cargo.toml b/filedescriptor/Cargo.toml index 8c937257c..30f3a764f 100644 --- a/filedescriptor/Cargo.toml +++ b/filedescriptor/Cargo.toml @@ -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" diff --git a/filedescriptor/src/unix.rs b/filedescriptor/src/unix.rs index d64214ec4..63cefbbcd 100644 --- a/filedescriptor/src/unix.rs +++ b/filedescriptor/src/unix.rs @@ -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()?;