fix/tail ~ update to correct current WinAPI usage (ref #1496)

This commit is contained in:
Roy Ivy III 2020-05-26 13:26:37 -05:00
parent 64f888d364
commit fc9abdc179
2 changed files with 4 additions and 4 deletions

View file

@ -16,11 +16,10 @@ path = "src/tail.rs"
[dependencies]
getopts = "0.2.18"
kernel32-sys = "0.2.2"
libc = "0.2.42"
uucore = { version="0.0.3", package="uucore", git="https://github.com/uutils/uucore.git", branch="canary" }
uucore_procs = { version="0.0.3", package="uucore_procs", git="https://github.com/uutils/uucore.git", branch="canary" }
winapi = "0.3"
winapi = { version="0.3", features=["fileapi", "handleapi", "processthreadsapi", "synchapi", "winbase"] }
[target.'cfg(target_os = "redox")'.dependencies]
redox_syscall = "0.1"

View file

@ -7,11 +7,12 @@
* file that was distributed with this source code.
*/
extern crate kernel32;
extern crate winapi;
use self::kernel32::{CloseHandle, OpenProcess, WaitForSingleObject};
use self::winapi::shared::minwindef::DWORD;
use self::winapi::um::handleapi::CloseHandle;
use self::winapi::um::processthreadsapi::OpenProcess;
use self::winapi::um::synchapi::WaitForSingleObject;
use self::winapi::um::winbase::{WAIT_FAILED, WAIT_OBJECT_0};
use self::winapi::um::winnt::{HANDLE, SYNCHRONIZE};