Module: sip-router Branch: master Commit: 577585de0a63737157e88d18007807f8f55f7904 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=577585de...
Author: Jason Penton jason.penton@gmail.com Committer: Jason Penton jason.penton@gmail.com Date: Fri Dec 2 08:41:29 2011 +0200
core: Solaris fix for using libcurl - Require this fix on solaris for any dynamic loading of modules that use libcurl. See comment above fix for more details
---
sr_module.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/sr_module.c b/sr_module.c index 7b0d85d..853c7a2 100644 --- a/sr_module.c +++ b/sr_module.c @@ -76,6 +76,13 @@
struct sr_module* modules=0;
+/*We need to define this symbol on Solaris becuase libcurl relies on libnspr which looks for this symbol. + If it is not defined, dynamic module loading (dlsym) fails */ +#ifdef __OS_solaris + int nspr_use_zone_allocator = 0; +#endif + + #ifdef STATIC_EXEC extern struct module_exports exec_exports; #endif