# HG changeset patch # User Kim Alvefur # Date 1459187772 -7200 # Node ID addf60d25356f40c91b76636d43b705070580416 # Parent a7199fc8a50ef525d6c1ff72041904c189e99e5e net.dns: Import unpack() in forward-compatible way (Fixes compat with Lua5.2+) diff -r a7199fc8a50e -r addf60d25356 net/dns.lua --- a/net/dns.lua Mon Mar 28 13:27:42 2016 +0200 +++ b/net/dns.lua Mon Mar 28 19:56:12 2016 +0200 @@ -22,8 +22,8 @@ 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, ...)