mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-30 04:52:27 +01:00
21 lines
556 B
Diff
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)
|
|
{
|