Fixed: Define _DARWIN_UNLIMITED_STREAMS to fix setrlimit under OS X

--HG--
branch : develop
This commit is contained in:
kervala 2016-03-19 15:34:00 +01:00
parent a7b3532687
commit e191e1675b

View file

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