Răsfoiți Sursa

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

Jason Penton 13 ani în urmă
părinte
comite
577585de0a
1 a modificat fișierele cu 7 adăugiri și 0 ștergeri
  1. 7 0
      sr_module.c

+ 7 - 0
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