From cca2b19b4e6c892a963e94d6c7b28211fe17d9d9 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Sun, 12 Sep 2021 22:23:12 +0200 Subject: [PATCH] tail: only set the winapi dep on Windows --- src/uu/tail/Cargo.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/uu/tail/Cargo.toml b/src/uu/tail/Cargo.toml index 6928330de..0fe84670e 100644 --- a/src/uu/tail/Cargo.toml +++ b/src/uu/tail/Cargo.toml @@ -19,6 +19,8 @@ clap = { version = "2.33", features = ["wrap_help"] } libc = "0.2.42" uucore = { version=">=0.0.9", package="uucore", path="../../uucore", features=["ringbuffer"] } uucore_procs = { version=">=0.0.6", package="uucore_procs", path="../../uucore_procs" } + +[target.'cfg(windows)'.dependencies] winapi = { version="0.3", features=["fileapi", "handleapi", "processthreadsapi", "synchapi", "winbase"] } [target.'cfg(target_os = "redox")'.dependencies]