Date: Fri, 10 Jan 2014 17:17:38 +0000 (UTC) From: Baptiste Daroussin <bapt@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r339373 - head/devel/lua-sysctl/files Message-ID: <201401101717.s0AHHc9l001954@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bapt Date: Fri Jan 10 17:17:37 2014 New Revision: 339373 URL: http://svnweb.freebsd.org/changeset/ports/339373 Log: Add the forgotten patch Added: head/devel/lua-sysctl/files/ head/devel/lua-sysctl/files/patch-src__lua_sysctl.c (contents, props changed) Added: head/devel/lua-sysctl/files/patch-src__lua_sysctl.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/lua-sysctl/files/patch-src__lua_sysctl.c Fri Jan 10 17:17:37 2014 (r339373) @@ -0,0 +1,24 @@ +--- ./src/lua_sysctl.c.orig 2013-03-06 16:38:20.000000000 +0100 ++++ ./src/lua_sysctl.c 2014-01-10 18:09:08.582550597 +0100 +@@ -596,7 +596,7 @@ + */ + + +-static const luaL_reg lua_sysctl[] = ++static const luaL_Reg lua_sysctl[] = + { + {"get", luaA_sysctl_get}, + {"set", luaA_sysctl_set}, +@@ -612,7 +612,11 @@ + luaopen_sysctl_core(lua_State *L) + { + +- luaL_openlib(L, "sysctl", lua_sysctl, 0); ++ lua_newtable(L); ++ luaL_setfuncs(L, lua_sysctl,0); ++ lua_pushvalue(L,-1); ++ lua_setglobal(L,"sysctl"); ++ + return (1); + } +
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401101717.s0AHHc9l001954>