From df369c99e634a380a78436ddadc8563c68c42573 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Fri, 8 Jul 2005 01:51:00 +0000 Subject: [PATCH] no RLIMIT_NPROC on solaris --- src/sigar.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/sigar.c b/src/sigar.c index fc4acdd8..ab60fa4d 100644 --- a/src/sigar.c +++ b/src/sigar.c @@ -860,6 +860,10 @@ typedef struct { #define RLIMIT_RSS RLIMIT_UNSUPPORTED #endif +#ifndef RLIMIT_NPROC +#define RLIMIT_NPROC RLIMIT_UNSUPPORTED +#endif + static rlimit_field_t sigar_rlimits[] = { { RLIMIT_CPU, RlimitOffsets(cpu) }, { RLIMIT_FSIZE, RlimitOffsets(file_size) },