Software /
code /
prosody
Changeset
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 |
parents | 8222:67a9d2de2300 |
children | 8224:776789a98047 |
files | util/dependencies.lua |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
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"