RLIMIT_AS is RLIMIT_RSS on MacOSX 10.3.x

This commit is contained in:
Doug MacEachern 2007-05-11 14:42:41 +00:00
parent a3410ce4d4
commit b1ae2b2f24
1 changed files with 5 additions and 1 deletions

View File

@ -1442,7 +1442,11 @@ typedef struct {
#define RLIMIT_PSIZE (RLIM_NLIMITS+3) #define RLIMIT_PSIZE (RLIM_NLIMITS+3)
#ifndef RLIMIT_AS #ifndef RLIMIT_AS
# if defined(RLIMIT_VMEM)
# define RLIMIT_AS RLIMIT_VMEM # define RLIMIT_AS RLIMIT_VMEM
# elif defined(RLIMIT_RSS)
# define RLIMIT_AS RLIMIT_RSS
# endif
#endif #endif
static rlimit_field_t sigar_rlimits[] = { static rlimit_field_t sigar_rlimits[] = {