From 716787234a741356ff1662402554b234103d6db2 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Sun, 10 Mar 2024 14:02:20 +0900 Subject: [PATCH] Fix build error on macOS --- src/platform/unix/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/platform/unix/mod.rs b/src/platform/unix/mod.rs index 91d7375..b91ea76 100644 --- a/src/platform/unix/mod.rs +++ b/src/platform/unix/mod.rs @@ -42,6 +42,7 @@ fn pipe2(flags: nix::fcntl::OFlag) -> nix::Result<(RawFd, RawFd)> { use nix::fcntl::{fcntl, FcntlArg, FdFlag, OFlag}; let pipe = unistd::pipe()?; + let pipe = (pipe.0.into_raw_fd(), pipe.1.into_raw_fd()); let mut res = Ok(0);