aboutsummaryrefslogtreecommitdiffstats
path: root/util-src/pposix.c
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-08-18 12:07:40 +0200
committerKim Alvefur <zash@zash.se>2018-08-18 12:07:40 +0200
commit4d3ba7e40775e933a70283cd97c385f4c88038cb (patch)
treead0d8bfe6a07c9ecf4630a5a71cfd36eaeaeeb3b /util-src/pposix.c
parentb93089dd57d17f8c3e0a5031e0206faa31b60329 (diff)
downloadprosody-4d3ba7e40775e933a70283cd97c385f4c88038cb.tar.gz
prosody-4d3ba7e40775e933a70283cd97c385f4c88038cb.zip
util.pposix: Fix building on OS X (#1202)
Diffstat (limited to 'util-src/pposix.c')
-rw-r--r--util-src/pposix.c2
1 files changed, 1 insertions, 1 deletions
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;