# HG changeset patch # User Kim Alvefur # Date 1534586860 -7200 # Node ID 8f9e18d4fe500cc5b167c8c8804156c8466dfe97 # Parent 22e5f11c778af3ac2ff218e72144effea040a21e util.pposix: Fix building on OS X (#1202) diff -r 22e5f11c778a -r 8f9e18d4fe50 util-src/pposix.c --- a/util-src/pposix.c Tue Jul 24 19:07:26 2018 +0200 +++ b/util-src/pposix.c Sat Aug 18 12:07:40 2018 +0200 @@ -517,7 +517,7 @@ return RLIMIT_STACK; } -#if !(defined(sun) || defined(__sun)) +#if !(defined(sun) || defined(__sun) || defined(__APPLE__)) if(!strcmp(s, "MEMLOCK")) { return RLIMIT_MEMLOCK;