Skip to content

Commit 4792e54

Browse files
committed
Add cfg gate to libc import to satisfy clippy on windows
1 parent 3e2be88 commit 4792e54

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/uu/touch/src/touch.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ use std::io::{Error, ErrorKind};
2323
use std::path::{Path, PathBuf};
2424
use uucore::display::Quotable;
2525
use uucore::error::{FromIo, UResult, USimpleError};
26+
#[cfg(unix)]
2627
use uucore::libc;
2728
use uucore::parser::shortcut_value_parser::ShortcutValueParser;
2829
use uucore::translate;

0 commit comments

Comments
 (0)