From 27f53aa0dfd0e5b392e529040e9c6eb40189ac3f Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Fri, 6 Aug 2021 13:28:54 -0600 Subject: [PATCH] dd: only require signal-hook on linux --- src/uu/dd/Cargo.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/uu/dd/Cargo.toml b/src/uu/dd/Cargo.toml index da0165245..a0ed1ab91 100644 --- a/src/uu/dd/Cargo.toml +++ b/src/uu/dd/Cargo.toml @@ -19,13 +19,15 @@ byte-unit = "4.0" clap = { version = "2.33", features = [ "wrap_help" ] } gcd = "2.0" libc = "0.2" -signal-hook = "0.3.9" uucore = { version=">=0.0.8", package="uucore", path="../../uucore" } uucore_procs = { version=">=0.0.5", package="uucore_procs", path="../../uucore_procs" } [dev-dependencies] tempfile = "^3" +[target.'cfg(target_os = "linux")'.dependencies] +signal-hook = "0.3.9" + [[bin]] name = "dd" path = "src/main.rs"