summaryrefslogtreecommitdiffhomepage
path: root/libs/luci-lib-nixio/src/nixio.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/luci-lib-nixio/src/nixio.h')
-rw-r--r--libs/luci-lib-nixio/src/nixio.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/luci-lib-nixio/src/nixio.h b/libs/luci-lib-nixio/src/nixio.h
index 8802e9204..5eb84d11a 100644
--- a/libs/luci-lib-nixio/src/nixio.h
+++ b/libs/luci-lib-nixio/src/nixio.h
@@ -21,6 +21,10 @@
#include <lauxlib.h>
#include <luaconf.h>
+#if LUA_VERSION_NUM < 501
+#define luaL_Reg luaL_reg
+#endif
+
#define NIXIO_BUFFERSIZE 8192
typedef struct nixio_socket {