summaryrefslogtreecommitdiff
path: root/app-admin/conky-full/files/conky-1.8.1-lua-5.2.patch
blob: 956b0397d13ec09b3ec4b01a98160b7da532b66f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From 83bf5e3f853918583e519fbba455a79242be9c7c Mon Sep 17 00:00:00 2001
From: Brenden Matthews <brenden@diddyinc.com>
Date: Wed, 7 Mar 2012 11:11:12 -0800
Subject: [PATCH] Build fix for Lua >=5.2.

See Gentoo bug at https://bugs.gentoo.org/show_bug.cgi?id=407089.
---
 src/llua.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/llua.c b/src/llua.c
index 8f1df3c..383c279 100644
--- a/src/llua.c
+++ b/src/llua.c
@@ -92,7 +92,7 @@ void llua_init(void)
 	const char *libs = PACKAGE_LIBDIR"/lib?.so;";
 	char *old_path, *new_path;
 	if (lua_L) return;
-	lua_L = lua_open();
+	lua_L = luaL_newstate();
 
 	/* add our library path to the lua package.cpath global var */
 	luaL_openlibs(lua_L);
-- 
1.7.0.4