no RLIMIT_NPROC on solaris

This commit is contained in:
Doug MacEachern 2005-07-08 01:51:00 +00:00
parent d45e112ba4
commit df369c99e6
1 changed files with 4 additions and 0 deletions

View File

@ -860,6 +860,10 @@ typedef struct {
#define RLIMIT_RSS RLIMIT_UNSUPPORTED #define RLIMIT_RSS RLIMIT_UNSUPPORTED
#endif #endif
#ifndef RLIMIT_NPROC
#define RLIMIT_NPROC RLIMIT_UNSUPPORTED
#endif
static rlimit_field_t sigar_rlimits[] = { static rlimit_field_t sigar_rlimits[] = {
{ RLIMIT_CPU, RlimitOffsets(cpu) }, { RLIMIT_CPU, RlimitOffsets(cpu) },
{ RLIMIT_FSIZE, RlimitOffsets(file_size) }, { RLIMIT_FSIZE, RlimitOffsets(file_size) },