Skip to content

Commit

Permalink
Merge pull request #165 from japaric/musl-nlink_t
Browse files Browse the repository at this point in the history
musl: define nlink_t as u32/u64
  • Loading branch information
alexcrichton committed Jan 31, 2016
2 parents 53d11fc + ec9db4d commit 30f70ba
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/unix/notbsd/linux/musl/b32/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
pub type c_long = i32;
pub type c_ulong = u32;
pub type nlink_t = u32;

pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 32;
pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 24;
Expand Down
1 change: 1 addition & 0 deletions src/unix/notbsd/linux/musl/b64/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ pub type c_char = i8;
pub type wchar_t = i32;
pub type c_long = i64;
pub type c_ulong = u64;
pub type nlink_t = u64;

pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 56;
pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 40;
Expand Down
1 change: 0 additions & 1 deletion src/unix/notbsd/linux/musl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ pub type ino_t = u64;
pub type off_t = i64;
pub type blkcnt_t = i64;

pub type nlink_t = usize;
pub type blksize_t = c_long;
pub type fsblkcnt_t = ::c_ulonglong;
pub type fsfilcnt_t = ::c_ulonglong;
Expand Down

0 comments on commit 30f70ba

Please sign in to comment.