Skip to content

Commit 701066a

Browse files
committed
Readd os::cygwin::raw as pub(crate)
1 parent 3cf8372 commit 701066a

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

library/std/src/os/cygwin/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
//! Cygwin-specific definitions
22
#![stable(feature = "raw_ext", since = "1.1.0")]
33
pub mod fs;
4+
pub(crate) mod raw;

library/std/src/os/cygwin/raw.rs

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
//! Cygwin-specific raw type definitions.
2+
3+
#[stable(feature = "raw_ext", since = "1.1.0")]
4+
pub use libc::{blkcnt_t, blksize_t, dev_t, ino_t, mode_t, nlink_t, off_t, pthread_t, time_t};

library/std/src/sys/pal/unix/thread.rs

-1
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,6 @@ impl Drop for Thread {
344344
target_os = "illumos",
345345
target_os = "vxworks",
346346
target_vendor = "apple",
347-
target_os = "cygwin",
348347
))]
349348
fn truncate_cstr<const MAX_WITH_NUL: usize>(cstr: &CStr) -> [libc::c_char; MAX_WITH_NUL] {
350349
let mut result = [0; MAX_WITH_NUL];

0 commit comments

Comments
 (0)