Make RLIM_INFINITY usable without including <stdint.h>.

By using __uint64_t instead of uint64_t, this constant can also be used
if <sys/resource.h> is included on its own.
This commit is contained in:
Ed Schouten 2016-05-31 21:34:02 +00:00
parent 0f2297b1bf
commit ee7e05ea0f

View File

@ -108,7 +108,7 @@ struct __wrusage {
#define RLIM_NLIMITS 15 /* number of resource limits */
#define RLIM_INFINITY ((rlim_t)(((uint64_t)1 << 63) - 1))
#define RLIM_INFINITY ((rlim_t)(((__uint64_t)1 << 63) - 1))
/* XXX Missing: RLIM_SAVED_MAX, RLIM_SAVED_CUR */