summaryrefslogtreecommitdiff
path: root/lib/frrscript.c
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2025-01-14 10:09:04 -0500
committerGitHub <noreply@github.com>2025-01-14 10:09:04 -0500
commitfbea5acc0bb3a1b7700a1553318e826c2dca5b8c (patch)
treeba50f9008bc64664f82ff367d114199326bdf5d9 /lib/frrscript.c
parent5e881db4967bf52670a372e8b454d4e03a987299 (diff)
parenta39aa3eb379c62550437122de90c53874c5c04b6 (diff)
Merge pull request #17806 from opensourcerouting/fix/lua5.4_support
Lua 5.4 support
Diffstat (limited to 'lib/frrscript.c')
-rw-r--r--lib/frrscript.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/frrscript.c b/lib/frrscript.c
index 06460b014d..8b068ba61b 100644
--- a/lib/frrscript.c
+++ b/lib/frrscript.c
@@ -248,10 +248,12 @@ int _frrscript_call_lua(struct lua_function_state *lfs, int nargs)
zlog_err("Lua hook call '%s' : error handler error: %s",
lfs->name, lua_tostring(lfs->L, -1));
break;
+#if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM <= 503
case LUA_ERRGCMM:
zlog_err("Lua hook call '%s' : garbage collector error: %s",
lfs->name, lua_tostring(lfs->L, -1));
break;
+#endif
default:
zlog_err("Lua hook call '%s' : unknown error: %s", lfs->name,
lua_tostring(lfs->L, -1));