32 lines
1.1 KiB
Diff
32 lines
1.1 KiB
Diff
|
diff --git a/bindings/lua/rrdlua.c b/bindings/lua/rrdlua.c
|
||
|
index bfbc174..b54f787 100644
|
||
|
--- a/bindings/lua/rrdlua.c
|
||
|
+++ b/bindings/lua/rrdlua.c
|
||
|
@@ -350,7 +350,7 @@ set_info (lua_State * L)
|
||
|
|
||
|
/**********************************************************/
|
||
|
|
||
|
-static const struct luaL_reg rrd[] = {
|
||
|
+static const struct luaL_Reg rrd[] = {
|
||
|
{"create", lua_rrd_create},
|
||
|
{"dump", lua_rrd_dump},
|
||
|
{"fetch", lua_rrd_fetch},
|
||
|
diff --git a/configure.ac b/configure.ac
|
||
|
index 6d277bf..d0d9ea0 100644
|
||
|
--- a/configure.ac
|
||
|
+++ b/configure.ac
|
||
|
@@ -810,7 +810,12 @@ LUA_EOF
|
||
|
LIBS=
|
||
|
lua_havelib=no
|
||
|
LUA_HAVE_COMPAT51=DONT_HAVE_COMPAT51
|
||
|
- AC_SEARCH_LIBS(lua_call, lua$lua_vdot lua$lua_vndot lua,
|
||
|
+ if test "$lua_vndot" -ge "52"; then
|
||
|
+ CALL_FUNC=lua_callk
|
||
|
+ else
|
||
|
+ CALL_FUNC=lua_call
|
||
|
+ fi
|
||
|
+ AC_SEARCH_LIBS($CALL_FUNC, lua$lua_vdot lua$lua_vndot lua,
|
||
|
[AC_SEARCH_LIBS(luaL_register, lua$lua_vdot lua$lua_vndot lua,
|
||
|
[lua_havelib=LUA$lua_vndot],
|
||
|
[AC_SEARCH_LIBS(luaL_module, lualib$lua_vndot lualib$lua_vdot lualib,
|