mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
fix loading on windows
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5858 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -660,7 +660,13 @@ static switch_status_t switch_loadable_module_load_file(char *path, char *filena
|
||||
|
||||
struct_name = switch_core_sprintf(pool, "%s_module_interface", filename);
|
||||
|
||||
#ifdef WIN32
|
||||
status = switch_dso_load(&dso, "FreeSwitch.dll", loadable_modules.pool);
|
||||
#elif defined(DARWIN)
|
||||
status = switch_dso_load(&dso, "libfreeswitch.dylib", loadable_modules.pool);
|
||||
#else
|
||||
status = switch_dso_load(&dso, NULL, loadable_modules.pool);
|
||||
#endif
|
||||
status = switch_dso_sym(&interface_struct_handle, dso, struct_name);
|
||||
|
||||
if (!interface_struct_handle) {
|
||||
|
Reference in New Issue
Block a user