Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/sys/ioctl/linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use cfg_if::cfg_if;
#[cfg(any(
target_os = "android",
target_os = "fuchsia",
target_os = "cygwin",
target_env = "musl",
target_env = "ohos"
))]
Expand All @@ -12,12 +13,14 @@ pub type ioctl_num_type = ::libc::c_int;
#[cfg(not(any(
target_os = "android",
target_os = "fuchsia",
target_os = "cygwin",
target_env = "musl",
target_env = "ohos"
)))]
#[doc(hidden)]
pub type ioctl_num_type = ::libc::c_ulong;
/// The datatype used for the 3rd argument
#[cfg(not(target_os = "cygwin"))]
#[doc(hidden)]
pub type ioctl_param_type = ::libc::c_ulong;

Expand Down
14 changes: 12 additions & 2 deletions src/sys/ioctl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,11 +227,21 @@
//! ```
use cfg_if::cfg_if;

#[cfg(any(linux_android, target_os = "fuchsia", target_os = "redox"))]
#[cfg(any(
linux_android,
target_os = "fuchsia",
target_os = "redox",
target_os = "cygwin"
))]
#[macro_use]
mod linux;

#[cfg(any(linux_android, target_os = "fuchsia", target_os = "redox"))]
#[cfg(any(
linux_android,
target_os = "fuchsia",
target_os = "redox",
target_os = "cygwin"
))]
pub use self::linux::*;

#[cfg(any(bsd, solarish, target_os = "haiku",))]
Expand Down
1 change: 1 addition & 0 deletions src/sys/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ feature! {
solarish,
target_os = "fuchsia",
target_os = "redox",
target_os = "cygwin",
))]
#[cfg(feature = "ioctl")]
#[cfg_attr(docsrs, doc(cfg(feature = "ioctl")))]
Expand Down