31 lines
1.2 KiB
Diff
31 lines
1.2 KiB
Diff
diff -up luaposix-release-v34.1.1/ext/include/_helpers.c.54 luaposix-release-v34.1.1/ext/include/_helpers.c
|
|
--- luaposix-release-v34.1.1/ext/include/_helpers.c.54 2019-07-28 19:52:15.000000000 -0600
|
|
+++ luaposix-release-v34.1.1/ext/include/_helpers.c 2020-07-03 15:52:36.736850636 -0600
|
|
@@ -67,7 +67,7 @@
|
|
# endif
|
|
#endif
|
|
|
|
-#if LUA_VERSION_NUM == 502 || LUA_VERSION_NUM == 503
|
|
+#if LUA_VERSION_NUM == 502 || LUA_VERSION_NUM == 503 || LUA_VERSION_NUM == 504
|
|
# define lua_objlen lua_rawlen
|
|
# define lua_strlen lua_rawlen
|
|
#endif
|
|
diff -up luaposix-release-v34.1.1/lib/posix/init.lua.54 luaposix-release-v34.1.1/lib/posix/init.lua
|
|
--- luaposix-release-v34.1.1/lib/posix/init.lua.54 2020-07-03 15:52:36.731850626 -0600
|
|
+++ luaposix-release-v34.1.1/lib/posix/init.lua 2020-07-03 16:27:29.414853510 -0600
|
|
@@ -327,10 +327,12 @@ do
|
|
end
|
|
|
|
-- Inject deprecated APIs (overwriting submodules) for backwards compatibility.
|
|
- for k, v in next, require 'posix.deprecated' do
|
|
+ local funcs = require 'posix.deprecated'
|
|
+ for k, v in next, funcs do
|
|
M[k] = v
|
|
end
|
|
- for k, v in next, require 'posix.compat' do
|
|
+ funcs = require 'posix.compat'
|
|
+ for k, v in next, funcs do
|
|
M[k] = v
|
|
end
|
|
end
|