diff options
author | Nathan Angelacos <nangel@alpinelinux.org> | 2015-10-06 12:51:39 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-10-06 22:31:05 +0200 |
commit | 2b7381de064feea04c184d7f7869de7a45d4c589 (patch) | |
tree | 2c7f662f6d67d3fa50ff4fd9d33e260eeb7dd179 /community/lua-hiredis/0001-lua-5-3-compatibility.patch | |
parent | 560d359a0c22594db720eacbab4804141651f2c4 (diff) | |
download | aports-2b7381de064feea04c184d7f7869de7a45d4c589.tar.bz2 aports-2b7381de064feea04c184d7f7869de7a45d4c589.tar.xz |
community/lua-hiredis
Redis binary protocol bindings for lua
Diffstat (limited to 'community/lua-hiredis/0001-lua-5-3-compatibility.patch')
-rw-r--r-- | community/lua-hiredis/0001-lua-5-3-compatibility.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/community/lua-hiredis/0001-lua-5-3-compatibility.patch b/community/lua-hiredis/0001-lua-5-3-compatibility.patch new file mode 100644 index 0000000000..c7bab778bb --- /dev/null +++ b/community/lua-hiredis/0001-lua-5-3-compatibility.patch @@ -0,0 +1,20 @@ +diff --git a/src/lua-hiredis.c b/src/lua-hiredis.c +index f8b2fdf..8cd7c56 100644 +--- a/src/lua-hiredis.c ++++ b/src/lua-hiredis.c +@@ -8,6 +8,15 @@ extern "C" { + #endif + + #include <lua.h> ++ ++// Lua 5.2 compatibility ++#if LUA_VERSION_NUM > 501 ++#define luaL_reg luaL_Reg ++#define LUA_COMPAT_MODULE ++#define LUA_COMPAT_APIINTCASTS ++#endif ++ ++ + #include <lauxlib.h> + + #if defined (__cplusplus) |