|
@@ -72,6 +72,8 @@ sl_api_t slb;
|
|
*/
|
|
*/
|
|
static void destroy(void);
|
|
static void destroy(void);
|
|
|
|
|
|
|
|
+/* environment pointer needed to init perl interpreter */
|
|
|
|
+extern char **environ;
|
|
|
|
|
|
/*
|
|
/*
|
|
* Module initialization function prototype
|
|
* Module initialization function prototype
|
|
@@ -319,6 +321,9 @@ struct mi_root* perl_mi_reload(struct mi_root *cmd_tree, void *param)
|
|
static int mod_init(void) {
|
|
static int mod_init(void) {
|
|
|
|
|
|
int ret = 0;
|
|
int ret = 0;
|
|
|
|
+ int argc = 1;
|
|
|
|
+ char *argt[] = { MOD_NAME, NULL };
|
|
|
|
+ char **argv;
|
|
|
|
|
|
if(register_mi_mod(exports.name, mi_cmds)!=0)
|
|
if(register_mi_mod(exports.name, mi_cmds)!=0)
|
|
{
|
|
{
|
|
@@ -337,7 +342,8 @@ static int mod_init(void) {
|
|
return -1;
|
|
return -1;
|
|
}
|
|
}
|
|
|
|
|
|
- PERL_SYS_INIT3(NULL, NULL, &environ);
|
|
|
|
|
|
+ argv = argt;
|
|
|
|
+ PERL_SYS_INIT3(&argc, &argv, &environ);
|
|
|
|
|
|
if ((my_perl = parser_init())) {
|
|
if ((my_perl = parser_init())) {
|
|
ret = 0;
|
|
ret = 0;
|