From e191e1675b0ff4d0910ffaf7de6870303ab15c7f Mon Sep 17 00:00:00 2001 From: kervala Date: Sat, 19 Mar 2016 15:34:00 +0100 Subject: [PATCH] Fixed: Define _DARWIN_UNLIMITED_STREAMS to fix setrlimit under OS X --HG-- branch : develop --- code/CMakeModules/nel.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/CMakeModules/nel.cmake b/code/CMakeModules/nel.cmake index 1d19212c9..3995dcbf8 100644 --- a/code/CMakeModules/nel.cmake +++ b/code/CMakeModules/nel.cmake @@ -871,7 +871,7 @@ MACRO(NL_SETUP_BUILD) ENDIF(ANDROID) IF(APPLE) - ADD_PLATFORM_FLAGS("-gdwarf-2") + ADD_PLATFORM_FLAGS("-gdwarf-2 -D_DARWIN_UNLIMITED_STREAMS") ENDIF(APPLE) # Fix "relocation R_X86_64_32 against.." error on x64 platforms