On Mon, Jan 31, 2022 at 07:20:30PM +0100, Samuel Thibault wrote: > diff --git a/sys-utils/prlimit.c b/sys-utils/prlimit.c prlimit should be marked as Linux-only in configure.ac (UL_REQUIRES_LINUX([prlimit])). Karel > index ca69ccf98..34f635b1e 100644 > --- a/sys-utils/prlimit.c > +++ b/sys-utils/prlimit.c > @@ -82,11 +82,15 @@ static struct prlimit_desc prlimit_desc[] = > [LOCKS] = { "LOCKS", N_("max number of file locks held"), N_("locks"), RLIMIT_LOCKS }, > [MEMLOCK] = { "MEMLOCK", N_("max locked-in-memory address space"), N_("bytes"), RLIMIT_MEMLOCK }, > [MSGQUEUE] = { "MSGQUEUE", N_("max bytes in POSIX mqueues"), N_("bytes"), RLIMIT_MSGQUEUE }, > +#ifdef RLIMIT_NICE > [NICE] = { "NICE", N_("max nice prio allowed to raise"), NULL, RLIMIT_NICE }, > +#endif > [NOFILE] = { "NOFILE", N_("max number of open files"), N_("files"), RLIMIT_NOFILE }, > [NPROC] = { "NPROC", N_("max number of processes"), N_("processes"), RLIMIT_NPROC }, > [RSS] = { "RSS", N_("max resident set size"), N_("bytes"), RLIMIT_RSS }, > +#ifdef RLIMIT_RTPRIO > [RTPRIO] = { "RTPRIO", N_("max real-time priority"), NULL, RLIMIT_RTPRIO }, > +#endif > [RTTIME] = { "RTTIME", N_("timeout for real-time tasks"), N_("microsecs"), RLIMIT_RTTIME }, > [SIGPENDING] = { "SIGPENDING", N_("max number of pending signals"), N_("signals"), RLIMIT_SIGPENDING }, > [STACK] = { "STACK", N_("max stack size"), N_("bytes"), RLIMIT_STACK } -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com