From b1ae2b2f2417fd81042e66121d2895473deb5e96 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Fri, 11 May 2007 14:42:41 +0000 Subject: [PATCH] RLIMIT_AS is RLIMIT_RSS on MacOSX 10.3.x --- src/sigar.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/sigar.c b/src/sigar.c index ac8081a8..65346f54 100644 --- a/src/sigar.c +++ b/src/sigar.c @@ -1442,7 +1442,11 @@ typedef struct { #define RLIMIT_PSIZE (RLIM_NLIMITS+3) #ifndef RLIMIT_AS -#define RLIMIT_AS RLIMIT_VMEM +# if defined(RLIMIT_VMEM) +# define RLIMIT_AS RLIMIT_VMEM +# elif defined(RLIMIT_RSS) +# define RLIMIT_AS RLIMIT_RSS +# endif #endif static rlimit_field_t sigar_rlimits[] = {