Skip to content

Commit f46da5f

Browse files
1 parent ba63e90 commit f46da5f

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

src/sys/ioctl/linux.rs

Lines changed: 6 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,17 @@ 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(target_os = "cygwin")]
24+
#[doc(hidden)]
25+
pub type ioctl_num_type = ::libc::c_int;
26+
#[cfg(not(target_os = "cygwin"))]
2127
#[doc(hidden)]
2228
pub type ioctl_param_type = ::libc::c_ulong;
2329

src/sys/ioctl/mod.rs

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

230-
#[cfg(any(linux_android, target_os = "fuchsia", target_os = "redox"))]
230+
#[cfg(any(linux_android, target_os = "fuchsia", target_os = "redox", target_os = "cygwin"))]
231231
#[macro_use]
232232
mod linux;
233233

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

237237
#[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)