util.pposix: Fix building on OS X (#1202)

This commit is contained in:
Kim Alvefur 2018-08-18 12:07:40 +02:00
parent e59fdc42ed
commit b78f1d3da1

View file

@ -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;