fix: define LUA_OK for Lua 5.1 and LuaJIT compatibility

LUA_OK was introduced in Lua 5.2. Define it as 0 for compatibility
with Lua 5.1 and LuaJIT (which is based on Lua 5.1).
This commit is contained in:
trim21
2026-06-11 12:10:40 +08:00
committed by Jari Sundell
parent 5b2e202452
commit 19305ab662
+4
View File
@@ -10,6 +10,10 @@
#ifdef HAVE_LUA
#include <lua.hpp>
// LUA_OK was introduced in Lua 5.2; define for Lua 5.1 and LuaJIT2.0.
#ifndef LUA_OK
#define LUA_OK 0
#endif
#endif
#include <torrent/object.h>