unbreak w/ lua 5.2

This commit is contained in:
jasper 2013-05-30 17:03:59 +00:00
parent 83be929be9
commit 32b6c7c984
2 changed files with 14 additions and 2 deletions

View File

@ -1,11 +1,11 @@
# $OpenBSD: Makefile,v 1.5 2013/03/11 10:50:11 espie Exp $
# $OpenBSD: Makefile,v 1.6 2013/05/30 17:03:59 jasper Exp $
SHARED_ONLY= Yes
COMMENT= time profiler for Lua
DISTNAME= luaprofiler-2.0.2
REVISION= 0
REVISION= 1
CATEGORIES= devel
HOMEPAGE= http://luaprofiler.luaforge.net/

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-src_lua50_profiler_c,v 1.1 2013/05/30 17:03:59 jasper Exp $
--- src/lua50_profiler.c.orig Thu May 30 20:54:19 2013
+++ src/lua50_profiler.c Thu May 30 20:54:27 2013
@@ -204,7 +204,7 @@ static float calcCallTime(lua_State *L) {
return lprofC_get_seconds(timer) / (float) 100000;
}
-static const luaL_reg prof_funcs[] = {
+static const luaL_Reg prof_funcs[] = {
{ "pause", profiler_pause },
{ "resume", profiler_resume },
{ "start", profiler_init },