From: Felix Fietkau Date: Sat, 5 Mar 2016 11:15:38 +0000 (+0100) Subject: add ifdefs to make service/instance.c compile on non-linux systems X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=663aba340d6cd19486e77889ef6fef7f0c0d9a98;p=oweals%2Fprocd.git add ifdefs to make service/instance.c compile on non-linux systems Signed-off-by: Felix Fietkau --- diff --git a/service/instance.c b/service/instance.c index b8602b8..f2604fe 100644 --- a/service/instance.c +++ b/service/instance.c @@ -122,14 +122,16 @@ static const struct rlimit_name rlimit_names[] = { { "data", RLIMIT_DATA }, { "fsize", RLIMIT_FSIZE }, { "memlock", RLIMIT_MEMLOCK }, - { "msgqueue", RLIMIT_MSGQUEUE }, - { "nice", RLIMIT_NICE }, { "nofile", RLIMIT_NOFILE }, { "nproc", RLIMIT_NPROC }, { "rss", RLIMIT_RSS }, + { "stack", RLIMIT_STACK }, +#ifdef linux + { "nice", RLIMIT_NICE }, { "rtprio", RLIMIT_RTPRIO }, + { "msgqueue", RLIMIT_MSGQUEUE }, { "sigpending", RLIMIT_SIGPENDING }, - { "stack", RLIMIT_STACK }, +#endif { NULL, 0 } };