diff options
Diffstat (limited to 'src/shared/missing.h')
-rw-r--r-- | src/shared/missing.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shared/missing.h b/src/shared/missing.h index 471a81120c..3c758956c6 100644 --- a/src/shared/missing.h +++ b/src/shared/missing.h @@ -41,6 +41,9 @@ #define RLIMIT_RTTIME 15 #endif +/* If RLIMIT_RTTIME is not defined, then we cannot use RLIMIT_NLIMITS as is */ +#define _RLIMIT_MAX (RLIMIT_RTTIME+1 > RLIMIT_NLIMITS ? RLIMIT_RTTIME+1 : RLIMIT_NLIMITS) + #ifndef BTRFS_IOCTL_MAGIC #define BTRFS_IOCTL_MAGIC 0x94 #endif |