Skip to content

Commit

Permalink
glibc file_offset64 tyåpes
Browse files Browse the repository at this point in the history
  • Loading branch information
snogge committed Dec 16, 2024
1 parent 7e632e1 commit 2ba2df7
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions src/unix/linux_like/linux/gnu/b32/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,21 @@ cfg_if! {
} else {
pub type time_t = i32;
pub type suseconds_t = i32;
pub type ino_t = u32;
pub type off_t = i32;
pub type blkcnt_t = i32;
pub type fsblkcnt_t = c_ulong;
pub type fsfilcnt_t = c_ulong;
pub type rlim_t = c_ulong;
if #[cfg(glibc_file_offset_bits64)] {
pub type ino_t = u64;
pub type off_t = i64;
pub type blkcnt_t = i64;
pub type fsblkcnt_t = u64;
pub type fsfilcnt_t = u64;
pub type rlim_t = u64;
} else {
pub type ino_t = u32;
pub type off_t = i32;
pub type blkcnt_t = i32;
pub type fsblkcnt_t = c_ulong;
pub type fsfilcnt_t = c_ulong;
pub type rlim_t = c_ulong;
}
pub type blksize_t = i32;
}
}
Expand Down

0 comments on commit 2ba2df7

Please sign in to comment.