fix(rockspec): Fixup Windows (mingw32) builds (#383)

This commit is contained in:
goldenstein64 2022-07-26 16:24:25 -04:00 committed by GitHub
parent 1d61853ab8
commit 38c7b5161b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,7 +34,7 @@ local function make_plat(plat)
},
mingw32 = {
"LUASOCKET_DEBUG",
"LUASOCKET_INET_PTON",
-- "LUASOCKET_INET_PTON",
"WINVER=0x0501"
}
}
@ -113,6 +113,7 @@ local function make_plat(plat)
then
modules["socket.core"].sources[#modules["socket.core"].sources+1] = "src/wsocket.c"
modules["socket.core"].libraries = { "ws2_32" }
modules["socket.core"].libdirs = {}
end
return { modules = modules }
end