Fix build of luasocket on linux

This commit is contained in:
Vladimir Timofeev 2014-11-20 13:49:59 +03:00
parent a689fc4c7e
commit 012a152406
1 changed files with 1 additions and 0 deletions

View File

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