Skip to content

Commit

Permalink
Use proper libc types dev_t and ino_t instead of u64 to ensure compil…
Browse files Browse the repository at this point in the history
…ation succeeds on some 32bit and ARM platforms
  • Loading branch information
niklasmohrin committed Nov 1, 2020
1 parent ecc3163 commit 0e0c1e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/clircle_unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ pub use nix;
#[derive(Clone, Copy, PartialEq, Eq, Debug)]
pub struct UnixIdentifier {
/// The `st_dev` of a `FileStat` (returned by the `stat` family of functions).
pub device: u64,
pub device: libc::dev_t,
/// The `st_ino` of a `FileStat` (returned by the `stat` family of functions).
pub inode: u64,
pub inode: libc::ino_t,
}

impl TryFrom<Stdio> for UnixIdentifier {
Expand Down

0 comments on commit 0e0c1e8

Please sign in to comment.