mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-09 23:37:05 +02:00
21 lines
392 B
Diff
21 lines
392 B
Diff
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)
|