[Pkg-libvirt-commits] [libguestfs] 155/384: lua: Define luaL_checkint which was deprecated in lua 5.3.

Hilko Bengen bengen at moszumanska.debian.org
Sun Mar 29 16:56:31 UTC 2015


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to branch experimental
in repository libguestfs.

commit 4f3c288a1bac741fbcc9a8cd790d30618093a03e
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Sun Jan 18 07:38:58 2015 +0000

    lua: Define luaL_checkint which was deprecated in lua 5.3.
---
 generator/lua.ml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/generator/lua.ml b/generator/lua.ml
index c1fa6f0..f2aa8c7 100644
--- a/generator/lua.ml
+++ b/generator/lua.ml
@@ -54,6 +54,12 @@ let generate_lua_c () =
 #endif
 #endif
 
+#if LUA_VERSION_NUM >= 503
+#ifndef luaL_checkint
+#define luaL_checkint(L,n) ((int)luaL_checkinteger(L, (n)))
+#endif
+#endif
+
 #include <guestfs.h>
 #include \"guestfs-internal-frontend.h\"
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list