Software /
code /
prosody
Diff
util/dependencies.lua @ 8223:adfffc5b4e2a
util.dependencies: Add compatibility code for LuaSocket no longer exporting as a global
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 25 Jul 2017 13:16:31 +0200 |
parent | 7769:2a7b52437167 |
child | 8224:776789a98047 |
line wrap: on
line diff
--- a/util/dependencies.lua Sat Jul 08 18:21:45 2017 +0200 +++ b/util/dependencies.lua Tue Jul 25 13:16:31 2017 +0200 @@ -79,6 +79,9 @@ ["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"