Define RLIM64_INFINITY only if not defined

* resource.c (RLIM64_INFINITY): Define only if it isn't defined.
This commit is contained in:
H.J. Lu 2012-02-03 10:17:01 -08:00 committed by Dmitry V. Levin
parent 0b315b6543
commit d602542f16

View File

@ -49,7 +49,9 @@
#define rlimit64 rlimit /* Ugly hack */
#define rlim64_t rlim_t /* Ugly hack */
#ifndef RLIM64_INFINITY
#define RLIM64_INFINITY RLIM_INFINITY /* You guessed it */
#endif
#define sys_getrlimit64 sys_getrlimit
#define sys_setrlimit64 sys_setrlimit