0002-lua-Define-LUA_COMPAT_APIINTCASTS-for-Lua-5.3.0-comp.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. From 00135e21bec84a2fe5920d02fa0982ceb9f89a35 Mon Sep 17 00:00:00 2001
  2. From: Vinson Lee <vlee@freedesktop.org>
  3. Date: Thu, 5 Feb 2015 14:48:53 -0800
  4. Subject: [PATCH] lua: Define LUA_COMPAT_APIINTCASTS for Lua >= 5.3.0
  5. compatibility.
  6. MIME-Version: 1.0
  7. Content-Type: text/plain; charset=UTF-8
  8. Content-Transfer-Encoding: 8bit
  9. In Lua 5.3.0, luaL_checkint was deprecated.
  10. This patch fixes this build error with Lua 5.3.0.
  11. lua/demux.c: In function ‘vlclua_demux_peek’:
  12. lua/demux.c:55:5: error: implicit declaration of function ‘luaL_checkint’ [-Werror=implicit-function-declaration]
  13. int n = luaL_checkint( L, 1 );
  14. ^
  15. Signed-off-by: Vinson Lee <vlee@freedesktop.org>
  16. Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
  17. [Backport upstream commit 41caaa08cde60c4fec4bf2e5f9610e2a1b9e6a23]
  18. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
  19. ---
  20. modules/lua/vlc.h | 1 +
  21. 1 file changed, 1 insertion(+)
  22. diff --git a/modules/lua/vlc.h b/modules/lua/vlc.h
  23. index 71f381d334..b46b5f67a1 100644
  24. --- a/modules/lua/vlc.h
  25. +++ b/modules/lua/vlc.h
  26. @@ -38,6 +38,7 @@
  27. #include <vlc_stream.h>
  28. #include <vlc_demux.h>
  29. +#define LUA_COMPAT_APIINTCASTS
  30. #define LUA_COMPAT_MODULE
  31. #include <lua.h> /* Low level lua C API */
  32. #include <lauxlib.h> /* Higher level C API */
  33. --
  34. 2.14.4