aboutsummaryrefslogtreecommitdiffstats
path: root/main/lua-microlight/fix-lua-5.3.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-04-06 20:16:46 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-04-06 20:16:46 +0000
commitb22b9862618e39aba129b7b22082d1e4bc53bf45 (patch)
tree1b67ae792a4df51c1b30746d0a2ff4e7e7f80cd5 /main/lua-microlight/fix-lua-5.3.patch
parent583b71aa4ea4e30b06ad42ce7da54e5e0c685168 (diff)
downloadaports-b22b9862618e39aba129b7b22082d1e4bc53bf45.tar.bz2
aports-b22b9862618e39aba129b7b22082d1e4bc53bf45.tar.xz
main/lua-microlight: fix lua 5.3
Diffstat (limited to 'main/lua-microlight/fix-lua-5.3.patch')
-rw-r--r--main/lua-microlight/fix-lua-5.3.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/main/lua-microlight/fix-lua-5.3.patch b/main/lua-microlight/fix-lua-5.3.patch
new file mode 100644
index 0000000000..8ec4203f1d
--- /dev/null
+++ b/main/lua-microlight/fix-lua-5.3.patch
@@ -0,0 +1,31 @@
+From f28d838c92de332764882055035dac72c3a143bf Mon Sep 17 00:00:00 2001
+From: Natanael Copa <ncopa@alpinelinux.org>
+Date: Mon, 6 Apr 2015 20:11:35 +0000
+Subject: [PATCH] Issue #7: fix for Lua 5.3
+
+---
+ ml.lua | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/ml.lua b/ml.lua
+index 6915195..3dbec40 100644
+--- a/ml.lua
++++ b/ml.lua
+@@ -8,6 +8,8 @@ local ml = {}
+ local select,pairs = select,pairs
+ local function_arg
+
++table.unpack = table.unpack or unpack
++
+ ---------------------------------------------------
+ -- String utilties.
+ -- @section string
+@@ -585,7 +587,7 @@ function ml.import(t,...)
+ libs[i] = lib
+ end
+ end
+- return ml.update(t,unpack(libs))
++ return ml.update(t,table.unpack(libs))
+ end
+
+ --- add the key/value pairs of arrays to the first array.