From d088b671872f1df6993ccca6fa6139ebed0a8cf3 Mon Sep 17 00:00:00 2001 From: Dave Huseby Date: Tue, 28 Jul 2015 11:09:49 -0700 Subject: Fixes #25155 and fixes #27359 by fixing the stat defines for both freebsd 10.1 x86_64 and i686 --- src/liblibc/lib.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/liblibc') diff --git a/src/liblibc/lib.rs b/src/liblibc/lib.rs index c229df34ccf..f474841136e 100644 --- a/src/liblibc/lib.rs +++ b/src/liblibc/lib.rs @@ -1009,7 +1009,7 @@ pub mod types { use types::os::arch::posix88::{uid_t}; pub type nlink_t = u16; - pub type blksize_t = i32; + pub type blksize_t = u32; pub type blkcnt_t = i64; pub type fflags_t = u32; #[repr(C)] @@ -1035,7 +1035,7 @@ pub mod types { pub st_lspare: int32_t, pub st_birthtime: time_t, pub st_birthtime_nsec: c_long, - pub __unused: [uint8_t; 2], + pub __unused: [u8; 8], } #[repr(C)] @@ -1103,7 +1103,7 @@ pub mod types { use types::os::arch::posix88::{uid_t}; pub type nlink_t = u16; - pub type blksize_t = i64; + pub type blksize_t = u32; pub type blkcnt_t = i64; pub type fflags_t = u32; #[repr(C)] @@ -1129,7 +1129,6 @@ pub mod types { pub st_lspare: int32_t, pub st_birthtime: time_t, pub st_birthtime_nsec: c_long, - pub __unused: [uint8_t; 2], } #[repr(C)] -- cgit 1.4.1-3-g733a5