diff options
author | Kim Alvefur <zash@zash.se> | 2014-09-18 02:22:48 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2014-09-18 02:22:48 +0200 |
commit | 31be1596b93612e1c848402bd21207ad06ae30e8 (patch) | |
tree | 361f642064745fd1a6601050e7573062ff65e2ad /util-src/net.c | |
parent | 57b543c70405092fc24f859c05c734fc8b361030 (diff) | |
parent | b19f5a09a19534973d522e7400139f040d76391b (diff) | |
download | prosody-31be1596b93612e1c848402bd21207ad06ae30e8.tar.gz prosody-31be1596b93612e1c848402bd21207ad06ae30e8.zip |
Merge 0.10->trunk
Diffstat (limited to 'util-src/net.c')
-rw-r--r-- | util-src/net.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/util-src/net.c b/util-src/net.c index e307c628..9e57854c 100644 --- a/util-src/net.c +++ b/util-src/net.c @@ -26,6 +26,10 @@ #include <lua.h> #include <lauxlib.h> +#if (LUA_VERSION_NUM == 502) +#define luaL_register(L, N, R) luaL_setfuncs(L, R, 0) +#endif + /* Enumerate all locally configured IP addresses */ const char * const type_strings[] = { @@ -112,6 +116,7 @@ int luaopen_util_net(lua_State* L) { NULL, NULL } }; - luaL_register(L, "net", exports); + lua_newtable(L); + luaL_register(L, NULL, exports); return 1; } |