forked from pool/lua-ldbus
- Added lua54.patch to fix building with Lua 5.4 OBS-URL: https://build.opensuse.org/request/show/819730 OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-ldbus?expand=0&rev=12
21 lines
661 B
Diff
21 lines
661 B
Diff
diff --git a/vendor/compat-5.3/c-api/compat-5.3.h b/vendor/compat-5.3/c-api/compat-5.3.h
|
|
index 8e10893..52d2830 100644
|
|
--- a/vendor/compat-5.3/c-api/compat-5.3.h
|
|
+++ b/vendor/compat-5.3/c-api/compat-5.3.h
|
|
@@ -397,11 +397,11 @@ COMPAT53_API void luaL_requiref (lua_State *L, const char *modname,
|
|
|
|
|
|
/* other Lua versions */
|
|
-#if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 501 || LUA_VERSION_NUM > 503
|
|
+#if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 501
|
|
|
|
-# error "unsupported Lua version (i.e. not Lua 5.1, 5.2, or 5.3)"
|
|
+# error "unsupported Lua version (i.e. less than Lua 5.1)"
|
|
|
|
-#endif /* other Lua versions except 5.1, 5.2, and 5.3 */
|
|
+#endif
|
|
|
|
|
|
|
|
|