From 5777050821ff18ce645f1a75e6fef5a01ff255fd Mon Sep 17 00:00:00 2001 From: Peter Kolloch Date: Mon, 19 Feb 2024 18:27:09 +0700 Subject: [PATCH] feat(tvix/castore): Compile fix for Darwin Towards https://b.tvl.fyi/issues/264 Change-Id: If8fa912ae3fb2987b761f649ab738529ebf3b2e8 Reviewed-on: https://cl.tvl.fyi/c/depot/+/10970 Autosubmit: Peter Kolloch Reviewed-by: flokli Tested-by: BuildkiteCI --- tvix/castore/src/fs/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tvix/castore/src/fs/mod.rs b/tvix/castore/src/fs/mod.rs index 28528f38a..699598b52 100644 --- a/tvix/castore/src/fs/mod.rs +++ b/tvix/castore/src/fs/mod.rs @@ -415,6 +415,9 @@ where Node::Symlink(_) => libc::S_IFLNK, }; + #[cfg(target_os = "macos")] + let ty = ty as u32; + let written = add_entry(fuse_backend_rs::api::filesystem::DirEntry { ino, offset: offset + i as u64 + 1,