about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorGraydon Hoare <graydon@mozilla.com>2013-01-09 10:43:16 -0800
committerGraydon Hoare <graydon@mozilla.com>2013-01-09 10:43:16 -0800
commitd0fa688f561e051c01110a0a102adf8a4236fc91 (patch)
tree33a35b66039b756c55a123d977e34acd591c813d /src/libcore
parentdd5734d4878ac259752e4495b90012cef4990862 (diff)
downloadrust-d0fa688f561e051c01110a0a102adf8a4236fc91.tar.gz
rust-d0fa688f561e051c01110a0a102adf8a4236fc91.zip
rustc: more arch-specific fallout from 2db3abd
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/libc.rs14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/libcore/libc.rs b/src/libcore/libc.rs
index 0a58f66740c..fb541f2e460 100644
--- a/src/libcore/libc.rs
+++ b/src/libcore/libc.rs
@@ -243,6 +243,12 @@ pub mod types {
                 pub type ssize_t = i32;
             }
             pub mod posix01 {
+                use libc::types::os::arch::c95::{c_int, c_short, c_long,
+                                                 time_t};
+                use libc::types::os::arch::posix88::{dev_t, gid_t, ino_t};
+                use libc::types::os::arch::posix88::{mode_t, off_t};
+                use libc::types::os::arch::posix88::{uid_t};
+
                 pub type nlink_t = u32;
                 pub type blksize_t = i32;
                 pub type blkcnt_t = i32;
@@ -443,9 +449,8 @@ pub mod types {
         pub mod common {
             pub mod posix01 {
                 use libc::types::os::arch::c95::{c_int, c_short};
-                use libc::types::os::arch::c99::int64_t;
-                use libc::types::os::arch::extra::time64_t;
-                use libc::types::os::arch::posix88::{dev_t, gid_t, ino_t};
+                use libc::types::os::arch::extra::{int64, time64_t};
+                use libc::types::os::arch::posix88::{dev_t, ino_t};
                 use libc::types::os::arch::posix88::mode_t;
 
                 // Note: this is the struct called stat64 in win32. Not stat,
@@ -458,7 +463,7 @@ pub mod types {
                     st_uid: c_short,
                     st_gid: c_short,
                     st_rdev: dev_t,
-                    st_size: int64_t,
+                    st_size: int64,
                     st_atime: time64_t,
                     st_mtime: time64_t,
                     st_ctime: time64_t,
@@ -539,6 +544,7 @@ pub mod types {
                 pub type WORD = u16;
 
                 pub type time64_t = i64;
+                pub type int64 = i64;
             }
         }
     }