Fix some non-FFI-safe types in externs

This commit is contained in:
Keegan McAllister 2014-09-03 18:56:37 -07:00
parent 3b5d92c923
commit 7f676b8699
2 changed files with 3 additions and 1 deletions

View File

@ -4542,7 +4542,7 @@ pub mod funcs {
pub fn glob(pattern: *const c_char,
flags: c_int,
errfunc: ::Nullable<extern "C" fn(epath: *const c_char,
errno: c_int) -> int>,
errno: c_int) -> c_int>,
pglob: *mut glob_t);
pub fn globfree(pglob: *mut glob_t);
}

View File

@ -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]