luci-lib-nixio: allow building with Lua5.2/LuaJIT
[project/luci.git] / libs / luci-lib-nixio / src / address.c
index 7957e8cc19aafa49bc220d3078b61500f452ce5d..0bf53caf82cee3c1211b8ae911f5e2d3c45c81f7 100644 (file)
@@ -544,7 +544,7 @@ static int nixio_getifaddrs(lua_State *L) {
 
 
 /* module table */
-static const luaL_reg R[] = {
+static const luaL_Reg R[] = {
 #if defined(__linux__) || defined(BSD)
        {"getifaddrs",  nixio_getifaddrs},
 #endif
@@ -554,7 +554,7 @@ static const luaL_reg R[] = {
 };
 
 /* object table */
-static const luaL_reg M[] = {
+static const luaL_Reg M[] = {
        {"getsockname", nixio_sock_getsockname},
        {"getpeername", nixio_sock_getpeername},
        {NULL,                  NULL}