mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
net.dns: Import unpack() in forward-compatible way (Fixes compat with Lua5.2+)
This commit is contained in:
parent
07b2ab8478
commit
fd043915e0
1 changed files with 2 additions and 2 deletions
|
@ -22,8 +22,8 @@ local is_windows = (_ and windows) or os.getenv("WINDIR");
|
|||
local coroutine, io, math, string, table =
|
||||
coroutine, io, math, string, table;
|
||||
|
||||
local ipairs, next, pairs, print, setmetatable, tostring, assert, error, unpack, select, type=
|
||||
ipairs, next, pairs, print, setmetatable, tostring, assert, error, unpack, select, type;
|
||||
local ipairs, next, pairs, print, setmetatable, tostring, assert, error, select, type, unpack=
|
||||
ipairs, next, pairs, print, setmetatable, tostring, assert, error, select, type, table.unpack or unpack;
|
||||
|
||||
local ztact = { -- public domain 20080404 lua@ztact.com
|
||||
get = function(parent, ...)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue