summaryrefslogtreecommitdiff
path: root/databases/tokyotyrant/files/patch-scrext.c
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2014-04-21 21:41:24 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2014-04-21 21:41:24 +0000
commitdfeaf523bb5d51da8a7c4625fe81628d1cb53140 (patch)
treec56d5f6c7713720bb8d6198a882cd37f293a946b /databases/tokyotyrant/files/patch-scrext.c
parent- Bump PORTREVISION for MAINTAINER change (diff)
Switch to lua 5.2
Obtained from: pkgsrc
Notes
Notes: svn path=/head/; revision=351723
Diffstat (limited to 'databases/tokyotyrant/files/patch-scrext.c')
-rw-r--r--databases/tokyotyrant/files/patch-scrext.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/databases/tokyotyrant/files/patch-scrext.c b/databases/tokyotyrant/files/patch-scrext.c
new file mode 100644
index 000000000000..1a0d19c3df8e
--- /dev/null
+++ b/databases/tokyotyrant/files/patch-scrext.c
@@ -0,0 +1,16 @@
+--- ./scrext.c.orig 2010-08-05 08:24:33.000000000 +0200
++++ ./scrext.c 2014-04-21 21:45:57.464501296 +0200
+@@ -153,6 +153,13 @@
+ #include "lualib.h"
+ #include "lauxlib.h"
+
++#ifdef LUA_VERSION_NUM
++# if (LUA_VERSION_NUM >= 502)
++#undef lua_objlen
++#define lua_objlen lua_rawlen
++# endif
++#endif
++
+ #define SERVVAR "_serv_" // global variable name for server resources
+ #define ITERVAR "_iter_" // global variable name for iterator
+ #define MRMAPVAR "_mrmap_" // global variable name for mapreduce mapper