summaryrefslogtreecommitdiff
path: root/devel/lua-posix/files/extrapatch-51-posix.lua
diff options
context:
space:
mode:
authorPhilip Paeps <philip@FreeBSD.org>2006-11-02 00:38:06 +0000
committerPhilip Paeps <philip@FreeBSD.org>2006-11-02 00:38:06 +0000
commitadb4c0b0550a6f4e2cea0aee65d3ea9282e4c5a2 (patch)
tree6a146557f118f3288f0207b658e29566705b34e7 /devel/lua-posix/files/extrapatch-51-posix.lua
parent- Update to 3.4.2-2 (bugfix release) (diff)
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
Diffstat (limited to 'devel/lua-posix/files/extrapatch-51-posix.lua')
-rw-r--r--devel/lua-posix/files/extrapatch-51-posix.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/devel/lua-posix/files/extrapatch-51-posix.lua b/devel/lua-posix/files/extrapatch-51-posix.lua
new file mode 100644
index 000000000000..fb5eea37a3fb
--- /dev/null
+++ b/devel/lua-posix/files/extrapatch-51-posix.lua
@@ -0,0 +1,11 @@
+--- 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"