From b78f1d3da1d7321240d92f25a239033bbc6fa2d1 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(-) (limited to 'util-src') 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