From 5120b1daf0153d067d4981584fcbab00d2f68272 Mon Sep 17 00:00:00 2001 From: Yu Qing Date: Thu, 12 Jan 2017 09:51:41 +0800 Subject: [PATCH] MacOS does NOT support macro RLIMIT_MSGQUEUE --- src/shared_func.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/shared_func.c b/src/shared_func.c index efbeb57..ee97be7 100644 --- a/src/shared_func.c +++ b/src/shared_func.c @@ -1350,9 +1350,11 @@ int set_rlimit(int resource, const rlim_t value) case RLIMIT_NOFILE: label = "max open files"; break; +#ifdef RLIMIT_MSGQUEUE case RLIMIT_MSGQUEUE: label = "max bytes in msg queues"; break; +#endif case RLIMIT_MEMLOCK: label = "max locked-in-memory address space"; break;