From 32b6c7c984ee2495e1f4ee17ee6c9f47e64e4dfd Mon Sep 17 00:00:00 2001 From: jasper Date: Thu, 30 May 2013 17:03:59 +0000 Subject: [PATCH] unbreak w/ lua 5.2 --- devel/luaprofiler/Makefile | 4 ++-- devel/luaprofiler/patches/patch-src_lua50_profiler_c | 12 ++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 devel/luaprofiler/patches/patch-src_lua50_profiler_c diff --git a/devel/luaprofiler/Makefile b/devel/luaprofiler/Makefile index 28c5aecd1c4..ece6c483027 100644 --- a/devel/luaprofiler/Makefile +++ b/devel/luaprofiler/Makefile @@ -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/ diff --git a/devel/luaprofiler/patches/patch-src_lua50_profiler_c b/devel/luaprofiler/patches/patch-src_lua50_profiler_c new file mode 100644 index 00000000000..b3f9d6f7565 --- /dev/null +++ b/devel/luaprofiler/patches/patch-src_lua50_profiler_c @@ -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 },