From ec9db4d779453bb68eedb48df59a51a183286a59 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Sat, 30 Jan 2016 19:51:14 -0500 Subject: [PATCH] musl: define nlink_t as u32/u64 --- src/unix/notbsd/linux/musl/b32/mod.rs | 1 + src/unix/notbsd/linux/musl/b64/mod.rs | 1 + src/unix/notbsd/linux/musl/mod.rs | 1 - 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/unix/notbsd/linux/musl/b32/mod.rs b/src/unix/notbsd/linux/musl/b32/mod.rs index d67da738301de..dfbc2b54811be 100644 --- a/src/unix/notbsd/linux/musl/b32/mod.rs +++ b/src/unix/notbsd/linux/musl/b32/mod.rs @@ -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; diff --git a/src/unix/notbsd/linux/musl/b64/mod.rs b/src/unix/notbsd/linux/musl/b64/mod.rs index 8fb70347e733d..0251e83b05c5e 100644 --- a/src/unix/notbsd/linux/musl/b64/mod.rs +++ b/src/unix/notbsd/linux/musl/b64/mod.rs @@ -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; diff --git a/src/unix/notbsd/linux/musl/mod.rs b/src/unix/notbsd/linux/musl/mod.rs index 0f9383d92e087..1ee023336fc7f 100644 --- a/src/unix/notbsd/linux/musl/mod.rs +++ b/src/unix/notbsd/linux/musl/mod.rs @@ -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;