Skip to content

Commit e9f0ad2

Browse files
snoggetgross35
authored andcommitted
gnu: Handle basic time types for 32bit with _TIME_BITS=64
Set the basic types correctly for gnu_time_bits64 (_TIME_BITS=64 and _FILE_OFFSET_BITS=64). (backport <rust-lang#4433>) (cherry picked from commit 739873b)
1 parent 52035e1 commit e9f0ad2

File tree

1 file changed

+12
-0
lines changed
  • src/unix/linux_like/linux/gnu/b32

1 file changed

+12
-0
lines changed

src/unix/linux_like/linux/gnu/b32/mod.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,18 @@ cfg_if! {
2929
pub type fsfilcnt_t = u64;
3030
pub type rlim_t = u64;
3131
pub type blksize_t = i64;
32+
} else if #[cfg(gnu_time_bits64)] {
33+
pub type time_t = i64;
34+
pub type suseconds_t = i32;
35+
type __ino_t = c_ulong;
36+
type __ino64_t = u64;
37+
pub type ino_t = __ino64_t;
38+
pub type off_t = i64;
39+
pub type blkcnt_t = i64;
40+
pub type fsblkcnt_t = u64;
41+
pub type fsfilcnt_t = u64;
42+
pub type rlim_t = u64;
43+
pub type blksize_t = i32;
3244
} else if #[cfg(gnu_file_offset_bits64)] {
3345
pub type time_t = i32;
3446
pub type suseconds_t = i32;

0 commit comments

Comments
 (0)