Fix rlim_t for 32-bit linux

This commit is contained in:
Alex Crichton 2015-09-10 11:29:20 -07:00
parent f8b1b3d37b
commit 7ff62a4e50
1 changed files with 2 additions and 2 deletions

View File

@ -222,7 +222,7 @@ pub mod types {
pub type pthread_t = c_ulong;
#[cfg(target_os = "nacl")]
pub type pthread_t = *mut c_void;
pub type rlim_t = u64;
pub type rlim_t = c_ulong;
#[repr(C)]
#[derive(Copy, Clone)] pub struct glob_t {
@ -3494,7 +3494,7 @@ pub mod consts {
pub const RLIMIT_RTPRIO: c_int = 14;
pub const RLIMIT_RTTIME: c_int = 15;
pub const RLIMIT_NLIMITS: c_int = 16;
pub const RLIM_INFINITY: rlim_t = 0xffff_ffff_ffff_ffff;
pub const RLIM_INFINITY: rlim_t = !0;
pub const RLIM_SAVED_MAX: rlim_t = RLIM_INFINITY;
pub const RLIM_SAVED_CUR: rlim_t = RLIM_INFINITY;