luci-lib-nixio: allow building with Lua5.2/LuaJIT 3676/head
authorManuel BACHMANN <tarnyko@tarnyko.net>
Mon, 24 Feb 2020 10:04:54 +0000 (11:04 +0100)
committerManuel BACHMANN <tarnyko@tarnyko.net>
Mon, 24 Feb 2020 10:04:54 +0000 (11:04 +0100)
commit6c0b8a40f7938c027953bd4c650a02e8aad77861
tree41ea62e1a8f7925d8b17ace0bcc2fbc228e3388d
parent562425605af51443986cb2596199564e4102ffff
luci-lib-nixio: allow building with Lua5.2/LuaJIT

Lua 5.1 defines a "luaL_Reg" alias for deprecated
"luaL_reg", but Lua >= 5.2 and LuaJIT do not.
Replace by "luaL_Reg", and define a "luaL_reg"
alias in case we build with old Lua 5.0.

Signed-off-by: Manuel BACHMANN <tarnyko@tarnyko.net>
20 files changed:
libs/luci-lib-nixio/src/address.c
libs/luci-lib-nixio/src/binary.c
libs/luci-lib-nixio/src/bind.c
libs/luci-lib-nixio/src/bit.c
libs/luci-lib-nixio/src/file.c
libs/luci-lib-nixio/src/fs.c
libs/luci-lib-nixio/src/io.c
libs/luci-lib-nixio/src/nixio.c
libs/luci-lib-nixio/src/nixio.h
libs/luci-lib-nixio/src/poll.c
libs/luci-lib-nixio/src/process.c
libs/luci-lib-nixio/src/protoent.c
libs/luci-lib-nixio/src/socket.c
libs/luci-lib-nixio/src/sockopt.c
libs/luci-lib-nixio/src/splice.c
libs/luci-lib-nixio/src/syslog.c
libs/luci-lib-nixio/src/tls-context.c
libs/luci-lib-nixio/src/tls-crypto.c
libs/luci-lib-nixio/src/tls-socket.c
libs/luci-lib-nixio/src/user.c