Skip to content

Commit 751276b

Browse files
add a platform guard to the import
1 parent 124e086 commit 751276b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/uu/du/src/du_cached.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ use std::path::{Path, PathBuf};
1818
use std::sync::{Arc, mpsc};
1919
use std::time::SystemTime;
2020
use uucore::error::UResult;
21+
22+
#[cfg(target_os = "linux")]
2123
use uucore::safe_traversal::DirFd;
2224

2325
/// Global cache of directory sizes with mtime-based invalidation

0 commit comments

Comments
 (0)