Skip to content

Commit e20b517

Browse files
committed
gnu: Handle basic file and time types for 32bit systems with time64
Set the basic types correctly for gnu_time64_abi (_TIME_BITS=64 and _FILE_OFFSET_BITS=64).
1 parent fad6e11 commit e20b517

File tree

1 file changed

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

1 file changed

+10
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,16 @@ cfg_if! {
2828
pub type fsfilcnt_t = u64;
2929
pub type rlim_t = u64;
3030
pub type blksize_t = i64;
31+
} else if #[cfg(gnu_time64_abi)] {
32+
pub type time_t = i64;
33+
pub type suseconds_t = i32;
34+
pub type ino_t = u64;
35+
pub type off_t = i64;
36+
pub type blkcnt_t = i64;
37+
pub type fsblkcnt_t = u64;
38+
pub type fsfilcnt_t = u64;
39+
pub type rlim_t = u64;
40+
pub type blksize_t = i32;
3141
} else {
3242
pub type time_t = i32;
3343
pub type suseconds_t = i32;

0 commit comments

Comments
 (0)