From 6fa6462636d9eecf8561d5775baa43bdf1d06348 Mon Sep 17 00:00:00 2001 From: Daniel Lemos Date: Fri, 11 Mar 2016 16:03:22 -0300 Subject: [PATCH] Given LuaRocks support Haiku as a valid platform, link the network library --- luasocket-scm-0.rockspec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/luasocket-scm-0.rockspec b/luasocket-scm-0.rockspec index 352a497..61bd645 100644 --- a/luasocket-scm-0.rockspec +++ b/luasocket-scm-0.rockspec @@ -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") },