lua_open() has been deprecated (but still available) in lua 5.1; but it's been

removed in lua 5.2. so prevent libquvi from breaking with newer lua's.
This commit is contained in:
jasper 2012-05-11 06:53:10 +00:00
parent 41b9f767ba
commit 8dcbd90a10
2 changed files with 17 additions and 1 deletions

View File

@ -1,8 +1,9 @@
# $OpenBSD: Makefile,v 1.1.1.1 2011/11/11 15:21:24 jasper Exp $ # $OpenBSD: Makefile,v 1.2 2012/05/11 06:53:10 jasper Exp $
COMMENT= library to parse flash media stream URLs COMMENT= library to parse flash media stream URLs
DISTNAME= libquvi-0.4.0 DISTNAME= libquvi-0.4.0
REVISION= 0
SHARED_LIBS += quvi 0.0 # 7.0 SHARED_LIBS += quvi 0.0 # 7.0
MODULES= devel/gettext \ MODULES= devel/gettext \

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-src_libquvi_lua_wrap_c,v 1.1 2012/05/11 06:53:10 jasper Exp $
lua_open() has been deprecated.
--- src/libquvi/lua_wrap.c.orig Fri May 11 08:48:28 2012
+++ src/libquvi/lua_wrap.c Fri May 11 08:48:40 2012
@@ -414,7 +414,7 @@ int init_lua(_quvi_t quvi)
{
QUVIcode rc;
- quvi->lua = (lua_State *) lua_open();
+ quvi->lua = (lua_State *) luaL_newstate();
if (!quvi->lua)
return (QUVI_LUAINIT);