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:
parent
41b9f767ba
commit
8dcbd90a10
@ -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
|
||||
|
||||
DISTNAME= libquvi-0.4.0
|
||||
REVISION= 0
|
||||
SHARED_LIBS += quvi 0.0 # 7.0
|
||||
|
||||
MODULES= devel/gettext \
|
||||
|
15
net/quvi/libquvi/patches/patch-src_libquvi_lua_wrap_c
Normal file
15
net/quvi/libquvi/patches/patch-src_libquvi_lua_wrap_c
Normal 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);
|
||||
|
Loading…
Reference in New Issue
Block a user