diff --git a/src/liblibc/lib.rs b/src/liblibc/lib.rs index 52e5de249317f..3645ef077a6af 100644 --- a/src/liblibc/lib.rs +++ b/src/liblibc/lib.rs @@ -4542,7 +4542,7 @@ pub mod funcs { pub fn glob(pattern: *const c_char, flags: c_int, errfunc: ::Nullable int>, + errno: c_int) -> c_int>, pglob: *mut glob_t); pub fn globfree(pglob: *mut glob_t); } diff --git a/src/libtime/lib.rs b/src/libtime/lib.rs index 34402d01c865d..eef9d7cf09a64 100644 --- a/src/libtime/lib.rs +++ b/src/libtime/lib.rs @@ -229,6 +229,8 @@ pub fn tzset() { /// Holds a calendar date and time broken down into its components (year, month, day, and so on), /// also called a broken-down time value. +// FIXME: use c_int instead of i32? +#[repr(C)] #[deriving(Clone, PartialEq, Eq, Show)] pub struct Tm { /// Seconds after the minute - [0, 60]