From b4f751ef56e4673dd637062abca6666163a7207e Mon Sep 17 00:00:00 2001 From: Sean Young Date: Sun, 24 Mar 2024 08:56:10 +0000 Subject: [PATCH] macos fixes for irp Signed-off-by: Sean Young --- Cargo.toml | 4 +++- liblircd/src/driver.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) 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;