Skip to content

Commit ddcf4dd

Browse files
1 parent ba63e90 commit ddcf4dd

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

src/sys/ioctl/linux.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ use cfg_if::cfg_if;
44
#[cfg(any(
55
target_os = "android",
66
target_os = "fuchsia",
7+
target_os = "cygwin",
78
target_env = "musl",
89
target_env = "ohos"
910
))]
@@ -12,12 +13,14 @@ pub type ioctl_num_type = ::libc::c_int;
1213
#[cfg(not(any(
1314
target_os = "android",
1415
target_os = "fuchsia",
16+
target_os = "cygwin",
1517
target_env = "musl",
1618
target_env = "ohos"
1719
)))]
1820
#[doc(hidden)]
1921
pub type ioctl_num_type = ::libc::c_ulong;
2022
/// The datatype used for the 3rd argument
23+
#[cfg(not(target_os = "cygwin"))]
2124
#[doc(hidden)]
2225
pub type ioctl_param_type = ::libc::c_ulong;
2326

src/sys/ioctl/mod.rs

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,11 +227,21 @@
227227
//! ```
228228
use cfg_if::cfg_if;
229229

230-
#[cfg(any(linux_android, target_os = "fuchsia", target_os = "redox"))]
230+
#[cfg(any(
231+
linux_android,
232+
target_os = "fuchsia",
233+
target_os = "redox",
234+
target_os = "cygwin"
235+
))]
231236
#[macro_use]
232237
mod linux;
233238

234-
#[cfg(any(linux_android, target_os = "fuchsia", target_os = "redox"))]
239+
#[cfg(any(
240+
linux_android,
241+
target_os = "fuchsia",
242+
target_os = "redox",
243+
target_os = "cygwin"
244+
))]
235245
pub use self::linux::*;
236246

237247
#[cfg(any(bsd, solarish, target_os = "haiku",))]

src/sys/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ feature! {
4040
solarish,
4141
target_os = "fuchsia",
4242
target_os = "redox",
43+
target_os = "cygwin",
4344
))]
4445
#[cfg(feature = "ioctl")]
4546
#[cfg_attr(docsrs, doc(cfg(feature = "ioctl")))]

0 commit comments

Comments
 (0)