aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-07-25 13:16:31 +0200
committerKim Alvefur <zash@zash.se>2017-07-25 13:16:31 +0200
commit03aa086d185d1d5323674eacedbef2f71d8c326d (patch)
treecef0987551653283252972f6e6c1264555d5786f
parent35dad9610a33d5e9d540c8f6c1f5dea0cbbfc232 (diff)
downloadprosody-03aa086d185d1d5323674eacedbef2f71d8c326d.tar.gz
prosody-03aa086d185d1d5323674eacedbef2f71d8c326d.zip
util.dependencies: Add compatibility code for LuaSocket no longer exporting as a global
-rw-r--r--util/dependencies.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/dependencies.lua b/util/dependencies.lua
index 491bfd9b..a259c263 100644
--- a/util/dependencies.lua
+++ b/util/dependencies.lua
@@ -79,6 +79,9 @@ function check_dependencies()
["Source"] = "http://www.tecgraf.puc-rio.br/~diego/professional/luasocket/";
});
fatal = true;
+ elseif not _G.socket then
+ -- COMPAT Code expecting LuaSocket to export as a global
+ _G.socket = socket;
end
local lfs, err = softreq "lfs"