luci-lib-nixio: allow building with Lua5.2/LuaJIT
[project/luci.git] / libs / luci-lib-nixio / src / socket.c
index 17c6afc7900a4b71bcf305050efd11572fc247d0..b4b052eaa0b1f1741946314392fd98bbc5b18727 100644 (file)
@@ -150,13 +150,13 @@ static int nixio_sock_shutdown(lua_State *L) {
 }
 
 /* module table */
-static const luaL_reg R[] = {
+static const luaL_Reg R[] = {
        {"socket",              nixio_socket},
        {NULL,                  NULL}
 };
 
 /* object table */
-static const luaL_reg M[] = {
+static const luaL_Reg M[] = {
        {"close",               nixio_sock_close},
        {"shutdown",    nixio_sock_shutdown},
        {"__gc",                nixio_sock__gc},