aboutsummaryrefslogtreecommitdiff
path: root/bits/resource.h
diff options
context:
space:
mode:
Diffstat (limited to 'bits/resource.h')
-rw-r--r--bits/resource.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bits/resource.h b/bits/resource.h
index a42a338..6b4d6cc 100644
--- a/bits/resource.h
+++ b/bits/resource.h
@@ -77,7 +77,7 @@ enum __rlimit_resource
/* Value to indicate that there is no limit. */
#ifndef __USE_FILE_OFFSET64
-# define RLIM_INFINITY 0x7fffffff
+# define RLIM_INFINITY ((__rlim_t) -1)
#else
# define RLIM_INFINITY 0x7fffffffffffffffLL
#endif