mips: Fix RLIMIT_RSS naming

MIPS defined RLIMIT_RSS in a way that could cause a naming conflict with
RLIMIT_RSS from the host system.  Broke clang+MacOS build.
This commit is contained in:
Mitch Hayenga
2014-08-26 10:13:31 -04:00
parent 61b8d5e4e4
commit 0da99b7e0c

View File

@@ -117,7 +117,7 @@ class MipsLinux : public Linux
/// Resource constants for getrlimit() (overide some generics).
static const unsigned TGT_RLIMIT_NPROC = 8;
static const unsigned TGT_RLIMIT_AS = 6;
static const unsigned RLIMIT_RSS = 7;
static const unsigned TGT_RLIMIT_RSS = 7;
static const unsigned TGT_RLIMIT_NOFILE = 5;
static const unsigned TGT_RLIMIT_MEMLOCK = 9;