From owner-svn-ports-all@FreeBSD.ORG Fri Jan 10 17:17:38 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7098D53E; Fri, 10 Jan 2014 17:17:38 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5E5B61DC9; Fri, 10 Jan 2014 17:17:38 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id s0AHHce1001955; Fri, 10 Jan 2014 17:17:38 GMT (envelope-from bapt@svn.freebsd.org) Received: (from bapt@localhost) by svn.freebsd.org (8.14.7/8.14.7/Submit) id s0AHHc9l001954; Fri, 10 Jan 2014 17:17:38 GMT (envelope-from bapt@svn.freebsd.org) Message-Id: <201401101717.s0AHHc9l001954@svn.freebsd.org> From: Baptiste Daroussin Date: Fri, 10 Jan 2014 17:17:38 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r339373 - head/devel/lua-sysctl/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Jan 2014 17:17:38 -0000 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); + } +