aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2014-01-11 01:17:37 +0800
committerbapt <bapt@FreeBSD.org>2014-01-11 01:17:37 +0800
commit568dde15840775088c365694443905a8b23daa87 (patch)
treed642c47f2bfd59bc457354ec2697a1dd00f6371c
parentb2b681188d20dec401c14cfd28f443cb9dd1fe97 (diff)
downloadfreebsd-ports-gnome-568dde15840775088c365694443905a8b23daa87.tar.gz
freebsd-ports-gnome-568dde15840775088c365694443905a8b23daa87.tar.zst
freebsd-ports-gnome-568dde15840775088c365694443905a8b23daa87.zip
Add the forgotten patch
-rw-r--r--devel/lua-sysctl/files/patch-src__lua_sysctl.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/devel/lua-sysctl/files/patch-src__lua_sysctl.c b/devel/lua-sysctl/files/patch-src__lua_sysctl.c
new file mode 100644
index 000000000000..16f7e098d03c
--- /dev/null
+++ b/devel/lua-sysctl/files/patch-src__lua_sysctl.c
@@ -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);
+ }
+