From 4d3ba7e40775e933a70283cd97c385f4c88038cb Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 18 Aug 2018 12:07:40 +0200 Subject: util.pposix: Fix building on OS X (#1202) --- util-src/pposix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util-src/pposix.c b/util-src/pposix.c index e70a9d7f..5e20def7 100644 --- a/util-src/pposix.c +++ b/util-src/pposix.c @@ -517,7 +517,7 @@ int string2resource(const char *s) { return RLIMIT_STACK; } -#if !(defined(sun) || defined(__sun)) +#if !(defined(sun) || defined(__sun) || defined(__APPLE__)) if(!strcmp(s, "MEMLOCK")) { return RLIMIT_MEMLOCK; -- cgit v1.2.3