From 7ff62a4e5089be6a82275ceae26aacecaed6b27b Mon Sep 17 00:00:00 2001
From: Alex Crichton <alex@alexcrichton.com>
Date: Thu, 10 Sep 2015 11:29:20 -0700
Subject: [PATCH] Fix rlim_t for 32-bit linux

---
 src/lib.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib.rs b/src/lib.rs
index bd993837..bab4d42a 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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;
 
-- 
GitLab