util: Add compat for prosody module name change to C sources

This commit is contained in:
Kim Alvefur 2023-03-17 18:03:07 +01:00
parent 43531740f9
commit 8136aa749a
14 changed files with 64 additions and 14 deletions

View file

@ -385,11 +385,15 @@ static const struct luaL_Reg thislib[] = {
LUALIB_API int luaopen_util_struct (lua_State *L);
LUALIB_API int luaopen_util_struct (lua_State *L) {
LUALIB_API int luaopen_prosody_util_struct (lua_State *L) {
luaL_newlib(L, thislib);
return 1;
}
LUALIB_API int luaopen_util_struct (lua_State *L) {
return luaopen_prosody_util_struct(L);
}
/******************************************************************************
* Copyright (C) 2010-2018 Lua.org, PUC-Rio. All rights reserved.