ports/devel/lua-posix/files/extrapatch-51-lposix.c
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
293 B
C

--- lposix.c.orig Thu Nov 2 11:08:39 2006
+++ lposix.c Thu Nov 2 11:11:29 2006
@@ -64,7 +64,7 @@
}
else
{
- int j=luaL_findstring(luaL_checkstring(L, i), S);
+ int j=luaL_checkoption(L, i, NULL, S);
if (j==-1) luaL_argerror(L, i, "unknown selector");
return F(L, j, data);
}