luci-lib-nixio: allow building with Lua5.2/LuaJIT
[oweals/luci.git] / libs / luci-lib-nixio / src / user.c
index b701bac95504c6f5a25128c80f26f1fe14deaa2b..b4f5ea1d53ea0a67e1941cf47260c6f37ed0a89d 100644 (file)
@@ -238,7 +238,7 @@ static int nixio_crypt(lua_State *L) {
 
 
 /* module table */
-static const luaL_reg R[] = {
+static const luaL_Reg R[] = {
        {"crypt",               nixio_crypt},
        {"getgr",               nixio_getgr},
        {"getpw",               nixio_getpw},
@@ -252,7 +252,7 @@ static const luaL_reg R[] = {
 
 #else /* __WINNT__ */
 
-static const luaL_reg R[] = {
+static const luaL_Reg R[] = {
                {NULL,                  NULL}
 };