Merge pull request #9180 from vovkasm/cmake-mac-quick-fix

Quick and dirty fix after my error. This defines fix build on linux with...
This commit is contained in:
Ricardo Quesada 2014-11-20 12:27:55 -08:00
commit 8fac79c951
1 changed files with 3 additions and 1 deletions

View File

@ -56,7 +56,9 @@ if(WINDOWS)
${cocos_root}/external/lua/luasocket/wsocket.c
)
elseif(UNIX)
add_definitions(-D_POSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE)
if(LINUX)
add_definitions(-D_POSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE)
endif()
list(APPEND lua_cocos2d_source_files
${cocos_root}/external/lua/luasocket/serial.c
${cocos_root}/external/lua/luasocket/unix.c