diff options
| author | Daniel Lemos <xspager@gmail.com> | 2016-03-11 16:03:22 -0300 |
|---|---|---|
| committer | Daniel Lemos <xspager@gmail.com> | 2016-03-11 16:05:21 -0300 |
| commit | 6fa6462636d9eecf8561d5775baa43bdf1d06348 (patch) | |
| tree | 58ace6cc15741c012be4277740da04258d887ee5 | |
| parent | 23ce5aeaa22b49d6649096b520b292a3626474ef (diff) | |
| download | luasocket-6fa6462636d9eecf8561d5775baa43bdf1d06348.tar.gz luasocket-6fa6462636d9eecf8561d5775baa43bdf1d06348.tar.bz2 luasocket-6fa6462636d9eecf8561d5775baa43bdf1d06348.zip | |
Given LuaRocks support Haiku as a valid platform, link the network library
| -rw-r--r-- | luasocket-scm-0.rockspec | 6 |
1 files changed, 5 insertions, 1 deletions
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) | |||
| 69 | socket = "src/socket.lua", | 69 | socket = "src/socket.lua", |
| 70 | mime = "src/mime.lua" | 70 | mime = "src/mime.lua" |
| 71 | } | 71 | } |
| 72 | if plat == "unix" or plat == "macosx" then | 72 | if plat == "unix" or plat == "macosx" or plat == "haiku" then |
| 73 | modules["socket.core"].sources[#modules["socket.core"].sources+1] = "src/usocket.c" | 73 | modules["socket.core"].sources[#modules["socket.core"].sources+1] = "src/usocket.c" |
| 74 | if plat == "haiku" then | ||
| 75 | modules["socket.core"].libraries = {"network"} | ||
| 76 | end | ||
| 74 | modules["socket.unix"] = { | 77 | modules["socket.unix"] = { |
| 75 | sources = { "src/buffer.c", "src/auxiliar.c", "src/options.c", "src/timeout.c", "src/io.c", "src/usocket.c", "src/unix.c" }, | 78 | sources = { "src/buffer.c", "src/auxiliar.c", "src/options.c", "src/timeout.c", "src/io.c", "src/usocket.c", "src/unix.c" }, |
| 76 | defines = defines[plat], | 79 | defines = defines[plat], |
| @@ -94,6 +97,7 @@ build = { | |||
| 94 | platforms = { | 97 | platforms = { |
| 95 | unix = make_plat("unix"), | 98 | unix = make_plat("unix"), |
| 96 | macosx = make_plat("macosx"), | 99 | macosx = make_plat("macosx"), |
| 100 | haiku = make_plat("haiku"), | ||
| 97 | win32 = make_plat("win32"), | 101 | win32 = make_plat("win32"), |
| 98 | mingw32 = make_plat("mingw32") | 102 | mingw32 = make_plat("mingw32") |
| 99 | }, | 103 | }, |
