all: add musl support
This commit is contained in:
parent
e150c4e748
commit
6341623e72
10 changed files with 65 additions and 35 deletions
11
src/utils/compat.rs
Normal file
11
src/utils/compat.rs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
use {cfg_if::cfg_if, uapi::c};
|
||||
|
||||
cfg_if! {
|
||||
if #[cfg(target_env = "musl")] {
|
||||
pub type IoctlNumber = c::c_int;
|
||||
pub type IovLength = c::c_int;
|
||||
} else {
|
||||
pub type IoctlNumber = c::c_ulong;
|
||||
pub type IovLength = usize;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue