Merge pull request #68 from ignacio/master

Enables building with LuaRocks and MS compilers
This commit is contained in:
Bruno Silvestre 2016-02-01 17:06:57 -02:00
commit 2c0497e39a

View File

@ -1,5 +1,5 @@
package = "LuaSec" package = "LuaSec"
version = "0.6alpha-2" version = "0.6alpha-3"
source = { source = {
url = "git://github.com/brunoos/luasec.git", url = "git://github.com/brunoos/luasec.git",
tag = "luasec-0.6alpha" tag = "luasec-0.6alpha"
@ -93,6 +93,21 @@ build = {
"src/luasocket/timeout.c", "src/luasocket/wsocket.c" "src/luasocket/timeout.c", "src/luasocket/wsocket.c"
} }
} }
},
patches = {
["luarocks_vs_compiler.patch"] = [[
--- a/src/ssl.c.orig
+++ b/src/ssl.c
@@ -844,3 +844,8 @@ LSEC_API int luaopen_ssl_core(lua_State *L)
return 1;
}
+
+#if defined(_MSC_VER)
+/* Empty implementation to allow building with LuaRocks and MS compilers */
+LSEC_API int luaopen_ssl(lua_State *L) { return 0; }
+#endif
]]
} }
} }
} }