mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-12-26 04:28:20 +01:00
Rockspec: Add usocket.c using platform ifdefs.
This commit is contained in:
parent
6bd096d90b
commit
c44d18bfb7
@ -64,7 +64,6 @@ local function make_plat(plat)
|
|||||||
, "src/options.c"
|
, "src/options.c"
|
||||||
, "src/timeout.c"
|
, "src/timeout.c"
|
||||||
, "src/io.c"
|
, "src/io.c"
|
||||||
, "src/usocket.c"
|
|
||||||
, "src/unix.c"
|
, "src/unix.c"
|
||||||
, "src/unixdgram.c"
|
, "src/unixdgram.c"
|
||||||
, "src/unixstream.c" },
|
, "src/unixstream.c" },
|
||||||
@ -92,6 +91,7 @@ local function make_plat(plat)
|
|||||||
or plat == "haiku"
|
or plat == "haiku"
|
||||||
then
|
then
|
||||||
modules["socket.core"].sources[#modules["socket.core"].sources+1] = "src/usocket.c"
|
modules["socket.core"].sources[#modules["socket.core"].sources+1] = "src/usocket.c"
|
||||||
|
modules["socket.unix"].sources[#modules["socket.unix"].sources+1] = "src/usocket.c"
|
||||||
if plat == "haiku" then
|
if plat == "haiku" then
|
||||||
modules["socket.core"].libraries = {"network"}
|
modules["socket.core"].libraries = {"network"}
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user