Browse code

modules/app_lua: fixed runtime warning: exports dlflags interface is deprecated

Victor Seva authored on 17/06/2013 08:48:45
Showing 1 changed files
... ...
@@ -92,7 +92,7 @@ static cmd_export_t cmds[]={
92 92
 
93 93
 struct module_exports exports = {
94 94
 	"app_lua",
95
-	RTLD_NOW | RTLD_GLOBAL, /* dlopen flags */
95
+	DEFAULT_DLFLAGS, /* dlopen flags */
96 96
 	cmds,
97 97
 	params,
98 98
 	0,
... ...
@@ -105,6 +105,12 @@ struct module_exports exports = {
105 105
 	child_init      /* per child init function */
106 106
 };
107 107
 
108
+int mod_register(char *path, int *dlflags, void *p1, void *p2)
109
+{
110
+	*dlflags = RTLD_NOW | RTLD_GLOBAL;
111
+	return 0;
112
+}
113
+
108 114
 /**
109 115
  * init module function
110 116
  */