summarylogtreecommitdiffstats
path: root/lua53_compat.patch
diff options
context:
space:
mode:
authorAntoine Lubineau2015-06-06 12:26:21 +0200
committerAntoine Lubineau2015-06-06 12:26:21 +0200
commitc051f7f512c12529411508fa0425d3e42ae8757c (patch)
tree30818e1f106d9a0137038ff7b19b4d183df13c93 /lua53_compat.patch
parent34f630fab92393c85f7953296e48589f8319d65e (diff)
downloadaur-c051f7f512c12529411508fa0425d3e42ae8757c.tar.gz
vlc-decklink: 2.2.1-4
Diffstat (limited to 'lua53_compat.patch')
-rw-r--r--lua53_compat.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/lua53_compat.patch b/lua53_compat.patch
new file mode 100644
index 000000000000..aeff7b2fd778
--- /dev/null
+++ b/lua53_compat.patch
@@ -0,0 +1,30 @@
+commit 41caaa08cde60c4fec4bf2e5f9610e2a1b9e6a23
+Author: Vinson Lee <vlee@freedesktop.org>
+Date: Thu Feb 5 14:48:53 2015 -0800
+
+ lua: Define LUA_COMPAT_APIINTCASTS for Lua >= 5.3.0 compatibility.
+
+ In Lua 5.3.0, luaL_checkint was deprecated.
+
+ This patch fixes this build error with Lua 5.3.0.
+
+ lua/demux.c: In function ‘vlclua_demux_peek’:
+ lua/demux.c:55:5: error: implicit declaration of function ‘luaL_checkint’ [-Werror=implicit-function-declaration]
+ int n = luaL_checkint( L, 1 );
+ ^
+
+ Signed-off-by: Vinson Lee <vlee@freedesktop.org>
+ Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
+
+diff --git a/modules/lua/vlc.h b/modules/lua/vlc.h
+index efd94f1..85c7fc1 100644
+--- a/modules/lua/vlc.h
++++ b/modules/lua/vlc.h
+@@ -38,6 +38,7 @@
+ #include <vlc_stream.h>
+ #include <vlc_demux.h>
+
++#define LUA_COMPAT_APIINTCASTS
+ #define LUA_COMPAT_MODULE
+ #include <lua.h> /* Low level lua C API */
+ #include <lauxlib.h> /* Higher level C API */