[sr-dev] git:master: core: Solaris fix for using libcurl

Jason Penton jason.penton at gmail.com
Fri Dec 2 07:43:25 CET 2011


Module: sip-router
Branch: master
Commit: 577585de0a63737157e88d18007807f8f55f7904
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=577585de0a63737157e88d18007807f8f55f7904

Author: Jason Penton <jason.penton at gmail.com>
Committer: Jason Penton <jason.penton at 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




More information about the sr-dev mailing list