diff --git a/src/unix/notbsd/linux/musl.rs b/src/unix/notbsd/linux/musl.rs index 7a244e49c4230..b11d850edc66c 100644 --- a/src/unix/notbsd/linux/musl.rs +++ b/src/unix/notbsd/linux/musl.rs @@ -6,6 +6,9 @@ pub type suseconds_t = i64; pub type ino_t = u64; pub type off_t = i64; pub type blkcnt_t = i64; +#[cfg(target_arch = "arm")] +pub type c_char = u8; +#[cfg(not(target_arch = "arm"))] pub type c_char = i8; pub type wchar_t = i32; pub type nlink_t = u64;