21 lines
556 B
Diff

Upstream: Not applicable
Reason: Fixes compilation
diff --git a/src/pllua_luajit.h b/src/pllua_luajit.h
index c3ebf08..84085d3 100644
--- a/src/pllua_luajit.h
+++ b/src/pllua_luajit.h
@@ -16,10 +16,12 @@
*/
extern const char *luaL_tolstring(lua_State *L, int nd, size_t *len);
+#if defined(LUAJIT_VERSION_NUM) && LUAJIT_VERSION_NUM < 20200
static inline int lua_absindex(lua_State *L, int nd)
{
return (nd < 0 && nd > LUA_REGISTRYINDEX) ? nd + lua_gettop(L) + 1 : nd;
}
+#endif
static inline int lua_rawgetp(lua_State *L, int nd, void *p)
{