mirror of https://github.com/axmolengine/axmol.git
Fix build of luasocket on linux
This commit is contained in:
parent
a689fc4c7e
commit
012a152406
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue