Skip to content

Commit e3bad84

Browse files
kaniinimyl7
authored andcommitted
musl: define time_t as i64 type.
musl 1.1 maintenance has for all practical purposes ended. Accordingly, there is no point in supporting both 1.1 and 1.2 in the libc crate, so follow the time_t type transition to 64-bit.
1 parent 978b9d5 commit e3bad84

File tree

1 file changed

+1
-10
lines changed
  • src/unix/linux_like/linux/musl

1 file changed

+1
-10
lines changed

src/unix/linux_like/linux/musl/mod.rs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,6 @@
11
pub type pthread_t = *mut ::c_void;
22
pub type clock_t = c_long;
3-
#[cfg_attr(
4-
not(feature = "rustc-dep-of-std"),
5-
deprecated(
6-
since = "0.2.80",
7-
note = "This type is changed to 64-bit in musl 1.2.0, \
8-
we'll follow that change in the future release. \
9-
See #1848 for more info."
10-
)
11-
)]
12-
pub type time_t = c_long;
3+
pub type time_t = i64;
134
pub type suseconds_t = c_long;
145
pub type ino_t = u64;
156
pub type off_t = i64;

0 commit comments

Comments
 (0)