diff --git a/Cargo.toml b/Cargo.toml index da071533..a33d24f4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,13 +21,15 @@ libc = "0.2" nix = { version = "0.28", features = [ "fs", "ioctl" ] } regex = "1" humantime = "2.1" -aya = "0.12" bitflags = "2.3" num-integer = "0.1" terminal_size = "0.3" log = "0.4" peg = "0.8" +[target.'cfg(target_os = "linux")'.dependencies] +aya = "0.12" + [dev-dependencies] assert_cmd = "2.0" serde_json = "1.0" diff --git a/liblircd/src/driver.c b/liblircd/src/driver.c index 28c5f326..bcbbf8cd 100644 --- a/liblircd/src/driver.c +++ b/liblircd/src/driver.c @@ -9,7 +9,7 @@ static int *data; static int len; static int leading; -int set_fake_data(int *d, int l) +void set_fake_data(int *d, int l) { data = d; len = l;