mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 09:58:17 +00:00
build mod_perl and fs_perl correctly on windows.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@765 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -316,15 +316,15 @@ static void switch_loadable_module_path_init()
|
||||
char *path =NULL, *working =NULL;
|
||||
apr_dir_t *perl_dir_handle = NULL;
|
||||
|
||||
apr_env_get(&path, "path", loadable_modules.pool);
|
||||
apr_filepath_get(&working, APR_FILEPATH_NATIVE , loadable_modules.pool);
|
||||
apr_env_get(&path, "path", loadable_modules.pool);
|
||||
apr_filepath_get(&working, APR_FILEPATH_NATIVE , loadable_modules.pool);
|
||||
|
||||
if (apr_dir_open(&perl_dir_handle, ".\\perl", loadable_modules.pool) == APR_SUCCESS) {
|
||||
apr_dir_close(perl_dir_handle);
|
||||
apr_env_set("path",
|
||||
apr_pstrcat(loadable_modules.pool, path, ";", working, "\\perl", NULL),
|
||||
loadable_modules.pool);
|
||||
}
|
||||
if (apr_dir_open(&perl_dir_handle, ".\\perl", loadable_modules.pool) == APR_SUCCESS) {
|
||||
apr_dir_close(perl_dir_handle);
|
||||
apr_env_set("path",
|
||||
apr_pstrcat(loadable_modules.pool, path, ";", working, "\\perl", NULL),
|
||||
loadable_modules.pool);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -357,7 +357,7 @@ SWITCH_DECLARE(switch_status) switch_loadable_module_init()
|
||||
|
||||
|
||||
#ifdef WIN32
|
||||
switch_loadable_module_path_init();
|
||||
switch_loadable_module_path_init();
|
||||
#endif
|
||||
|
||||
switch_core_hash_init(&loadable_modules.module_hash, loadable_modules.pool);
|
||||
|
Reference in New Issue
Block a user