about summary refs log tree commit diff
path: root/tvix/castore/src/fs/mod.rs
diff options
context:
space:
mode:
authorPeter Kolloch <info@eigenvalue.net>2024-02-19T11·27+0700
committerclbot <clbot@tvl.fyi>2024-02-19T17·14+0000
commit5777050821ff18ce645f1a75e6fef5a01ff255fd (patch)
treec33d71db1926e6c5ac0bc84c01683ed0840e1d11 /tvix/castore/src/fs/mod.rs
parent0db46dacea88bc15f06d586bee7acf2f50645f0a (diff)
feat(tvix/castore): Compile fix for Darwin r/7558
Towards https://b.tvl.fyi/issues/264

Change-Id: If8fa912ae3fb2987b761f649ab738529ebf3b2e8
Reviewed-on: https://cl.tvl.fyi/c/depot/+/10970
Autosubmit: Peter Kolloch <info@eigenvalue.net>
Reviewed-by: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/castore/src/fs/mod.rs')
-rw-r--r--tvix/castore/src/fs/mod.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/tvix/castore/src/fs/mod.rs b/tvix/castore/src/fs/mod.rs
index 28528f38af1d..699598b520ff 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,