freebsd-ports/devel/lua-posix/files/extrapatch-51-posix.lua
Philip Paeps adb4c0b055 Add devel/lua-posix to work with Lua 5.0 and Lua 5.1 and turn devel/lua-posix
into a slave port of it.

PR:		ports/104990
Submitted by:	Andrew Turner <andrew+ports@fubar.geek.nz> (maintainer)
Repocopy by:	marcus
2006-11-02 00:38:06 +00:00

11 lines
309 B
Lua

--- posix.lua.orig Thu Nov 2 12:52:39 2006
+++ posix.lua Thu Nov 2 11:06:46 2006
@@ -4,7 +4,7 @@
local function so(x)
local SOPATH= os.getenv"LUA_SOPATH" or "./"
- assert(loadlib(SOPATH.."l"..x..".so","luaopen_"..x))()
+ assert(package.loadlib(SOPATH.."l"..x..".so","luaopen_"..x))()
end
so"posix"