freebsd-ports/devel/lua50-compat51/files/patch-compat-51
Erwin Lansing 9e85136469 - Add conflicts
- Fix a bug with some features
- Remove lib/liblua-compat-5.1.a and lib/liblua-compat-5.1_p.a as they are no
  longer needed

PR:		96068
Submitted by:	Andrew Turner <andrew+ports@fubar.geek.nz> (maintainer)
2006-04-20 08:45:36 +00:00

10 lines
272 B
Text

--- compat-5.1.lua.orig Fri Apr 14 19:13:01 2006
+++ compat-5.1.lua Fri Apr 14 19:14:21 2006
@@ -260,6 +260,7 @@
ns._M = ns
ns._PACKAGE = gsub (modname, "[^.]*$", "")
end
+ setmetatable(ns, {__index = _G})
setfenv (2, ns)
for i, f in ipairs (arg) do
f (ns)