mirror of
https://github.com/uutils/coreutils
synced 2024-11-16 17:58:06 +00:00
fix/cp ~ update to correct current WinAPI usage (ref #1496)
This commit is contained in:
parent
251905da3d
commit
64f888d364
2 changed files with 5 additions and 8 deletions
|
@ -31,8 +31,7 @@ walkdir = "2.2.8"
|
|||
ioctl-sys = "0.5.2"
|
||||
|
||||
[target.'cfg(target_os = "windows")'.dependencies]
|
||||
kernel32-sys = "0.2.2"
|
||||
winapi = "0.3"
|
||||
winapi = { version="0.3", features=["fileapi"] }
|
||||
|
||||
[target.'cfg(unix)'.dependencies]
|
||||
xattr="0.2.1"
|
||||
|
|
|
@ -22,14 +22,12 @@ extern crate walkdir;
|
|||
#[cfg(unix)]
|
||||
extern crate xattr;
|
||||
|
||||
#[cfg(windows)]
|
||||
extern crate kernel32;
|
||||
#[cfg(windows)]
|
||||
use kernel32::CreateFileW;
|
||||
#[cfg(windows)]
|
||||
use kernel32::GetFileInformationByHandle;
|
||||
#[cfg(windows)]
|
||||
extern crate winapi;
|
||||
#[cfg(windows)]
|
||||
use winapi::um::fileapi::CreateFileW;
|
||||
#[cfg(windows)]
|
||||
use winapi::um::fileapi::GetFileInformationByHandle;
|
||||
|
||||
use clap::{App, Arg, ArgMatches};
|
||||
use filetime::FileTime;
|
||||
|
|
Loading…
Reference in a new issue