Skip to content

Commit f7d22cd

Browse files
committed
fix build
1 parent 6ac7a89 commit f7d22cd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/searcher.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,9 +368,11 @@ impl<'a> Searcher<'a> {
368368

369369
self.dir_queue.clear();
370370

371+
#[cfg(unix)]
372+
let hardlinks = root.options.hardlinks;
373+
371374
#[cfg(unix)]
372375
{
373-
let hardlinks = root.options.hardlinks;
374376
if hardlinks {
375377
let metadata = match self.current_follow_symlinks {
376378
true => root_dir.metadata(),

0 commit comments

Comments
 (0)