projects
/
oweals
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
luci-lib-nixio: allow building with Lua5.2/LuaJIT
[oweals/luci.git]
/
libs
/
luci-lib-nixio
/
src
/
nixio.h
diff --git
a/libs/luci-lib-nixio/src/nixio.h
b/libs/luci-lib-nixio/src/nixio.h
index 8802e920431af6665878dd184bd8435fef7bf080..5eb84d11ae34f6340c26e3886d37a8b4c315da20 100644
(file)
--- 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 {