cfg_select! {
any(target_os = "macos", target_os = "ios") => {
#[allow(unused_imports)]
pub(crate) use libc::__error as libc_errno;
}
any(target_os = "linux", target_os = "android") => {
#[cfg(target_os = "linux")]
#[allow(unused_imports)]
pub(crate) use libc::__errno_location as libc_errno;
#[cfg(target_os = "android")]
#[allow(unused_imports)]
pub(crate) use libc::__errno as libc_errno;
}
target_os = "freebsd" => {
#[allow(unused_imports)]
pub(crate) use libc::__error as libc_errno;
}
target_os = "netbsd" => {
#[allow(unused_imports)]
pub(crate) use libc::__errno as libc_errno;
}
_ => {
compile_error!("Invalid cfg!");
}
}
cfg_select! {
feature = "disk" => {
pub(crate) struct DisksInner {
pub(crate) disks: Vec<crate::Disk>,
}
impl DisksInner {
pub(crate) fn into_vec(self) -> Vec<crate::Disk> {
self.disks
}
}
}
_ => {}
}
#[cfg(feature = "network")]
pub(crate) mod ffi;
cfg_select! {
feature = "user" => {
#[cfg(not(target_os = "ios"))]
pub(crate) mod users;
pub(crate) mod groups;
}
_ => {}
}
pub(crate) mod utils;
#[cfg(any())]
mod groups;
#[cfg(any())]
mod users;