net.dns: Import unpack() in forward-compatible way (Fixes compat with Lua5.2+)

This commit is contained in:
Kim Alvefur 2016-03-28 19:56:12 +02:00
parent 07b2ab8478
commit fd043915e0

View file

@ -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, ...)