diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-06-16 17:27:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-16 17:27:01 +0200 |
commit | d1134c1a40692e0151e71c9b6ce1d5e07f2ddbcd (patch) | |
tree | dece122600eee910b1c7ecf20e91318b861cb03d /libs/luci-lib-nixio/src/nixio.h | |
parent | 2ced86048c7006f3637ed38ceeb3d21fddbb93e2 (diff) | |
parent | 6c0b8a40f7938c027953bd4c650a02e8aad77861 (diff) |
Merge pull request #3676 from Tarnyko/master
luci-lib-nixio: allow building with Lua5.2/LuaJIT
Diffstat (limited to 'libs/luci-lib-nixio/src/nixio.h')
-rw-r--r-- | libs/luci-lib-nixio/src/nixio.h | 4 |
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 8802e92043..5eb84d11ae 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 { |