Merge pull request #167 from xspager/add_haiku_plat

Add the lib network to the linked libs if the platform is Haiku
master
Diego Nehab 2016-04-12 09:29:46 -03:00
commit 6aa4f2bc33
1 changed files with 5 additions and 1 deletions

View File

@ -69,8 +69,11 @@ local function make_plat(plat)
socket = "src/socket.lua",
mime = "src/mime.lua"
}
if plat == "unix" or plat == "macosx" then
if plat == "unix" or plat == "macosx" or plat == "haiku" then
modules["socket.core"].sources[#modules["socket.core"].sources+1] = "src/usocket.c"
if plat == "haiku" then
modules["socket.core"].libraries = {"network"}
end
modules["socket.unix"] = {
sources = { "src/buffer.c", "src/auxiliar.c", "src/options.c", "src/timeout.c", "src/io.c", "src/usocket.c", "src/unix.c" },
defines = defines[plat],
@ -94,6 +97,7 @@ build = {
platforms = {
unix = make_plat("unix"),
macosx = make_plat("macosx"),
haiku = make_plat("haiku"),
win32 = make_plat("win32"),
mingw32 = make_plat("mingw32")
},