Software /
code /
prosody
Comparison
util-src/pposix.c @ 12976:a187600ec7d6
util: Add compat for prosody module name change to C sources
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 17 Mar 2023 18:03:07 +0100 |
parent | 12575:1f6f05a98fcd |
child | 13152:792f360a582b |
comparison
equal
deleted
inserted
replaced
12975:d10957394a3c | 12976:a187600ec7d6 |
---|---|
823 return 1; | 823 return 1; |
824 } | 824 } |
825 | 825 |
826 /* Register functions */ | 826 /* Register functions */ |
827 | 827 |
828 int luaopen_util_pposix(lua_State *L) { | 828 int luaopen_prosody_util_pposix(lua_State *L) { |
829 luaL_checkversion(L); | 829 luaL_checkversion(L); |
830 luaL_Reg exports[] = { | 830 luaL_Reg exports[] = { |
831 { "abort", lc_abort }, | 831 { "abort", lc_abort }, |
832 | 832 |
833 { "daemonize", lc_daemonize }, | 833 { "daemonize", lc_daemonize }, |
881 lua_pushliteral(L, MODULE_VERSION); | 881 lua_pushliteral(L, MODULE_VERSION); |
882 lua_setfield(L, -2, "_VERSION"); | 882 lua_setfield(L, -2, "_VERSION"); |
883 | 883 |
884 return 1; | 884 return 1; |
885 } | 885 } |
886 int luaopen_util_pposix(lua_State *L) { | |
887 return luaopen_prosody_util_pposix(L); | |
888 } |