1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
From: Enrico Tassi <gareuselesinge@debian.org>
Date: Sun, 11 May 2014 17:12:35 +0200
Subject: lua5.2
===================================================================
---
lua-curl.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/lua-curl.c b/lua-curl.c
index 1660cd4..77dd00e 100644
--- a/lua-curl.c
+++ b/lua-curl.c
@@ -49,6 +49,12 @@
#include "compat-5.1.h"
#endif
+#if LUA_VERSION_NUM == 502
+#define luaL_reg luaL_Reg
+#define luaL_register(L,name,tbl) luaL_setfuncs(L,tbl,0)
+#define lua_strlen(L,i) lua_rawlen((L),(i))
+#endif
+
#define CURL_EASY_META_NAME "curleasy.type"
/* think more if this means unicity... maybe store in the bag some pointers */
|