From 5e7cbb310837c8606ac0d5ff33214e92c2e660c0 Mon Sep 17 00:00:00 2001 From: jsen- Date: Fri, 3 Sep 2021 11:35:55 +0200 Subject: [PATCH] add support for musl (#42) --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 8bd5d50..9c12b7d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -58,9 +58,9 @@ mod bindings { include!(concat!(env!("OUT_DIR"), "/bindings.rs")); } -#[cfg(not(target_os = "android"))] +#[cfg(all(not(target_os = "android"), not(target_env = "musl")))] type IoctlRequest = libc::c_ulong; -#[cfg(target_os = "android")] +#[cfg(any(target_os = "android", target_env = "musl"))] type IoctlRequest = libc::c_int; const LOOP_CONTROL: &str = "/dev/loop-control";