Fix rlim_t for 32-bit linux
diff --git a/src/lib.rs b/src/lib.rs
index bd99383..bab4d42 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -222,7 +222,7 @@
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 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;