Module: sip-router
Branch: master
Commit: 03188db86347013ef43d3615c12be4b696349098
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=03188db…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: Mon Jun 17 10:48:45 2013 +0200
modules/app_lua: fixed runtime warning: exports dlflags interface is deprecated
---
modules/app_lua/app_lua_mod.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/modules/app_lua/app_lua_mod.c b/modules/app_lua/app_lua_mod.c
index 3d18f44..da39bce 100644
--- a/modules/app_lua/app_lua_mod.c
+++ b/modules/app_lua/app_lua_mod.c
@@ -92,7 +92,7 @@ static cmd_export_t cmds[]={
struct module_exports exports = {
"app_lua",
- RTLD_NOW | RTLD_GLOBAL, /* dlopen flags */
+ DEFAULT_DLFLAGS, /* dlopen flags */
cmds,
params,
0,
@@ -105,6 +105,12 @@ struct module_exports exports = {
child_init /* per child init function */
};
+int mod_register(char *path, int *dlflags, void *p1, void *p2)
+{
+ *dlflags = RTLD_NOW | RTLD_GLOBAL;
+ return 0;
+}
+
/**
* init module function
*/