As in atheme-services, I guess some versions of
MacOS X need this.
#define RTLD_NOW RTLD_LAZY /* openbsd deficiency */
#endif
#define RTLD_NOW RTLD_LAZY /* openbsd deficiency */
#endif
+#ifndef RTLD_LOCAL
+#define RTLD_LOCAL 0
+#endif
+
#ifdef CHARYBDIS_PROFILE
# ifndef RTLD_PROFILE
# warning libdl may not support profiling, sucks. :(
#ifdef CHARYBDIS_PROFILE
# ifndef RTLD_PROFILE
# warning libdl may not support profiling, sucks. :(
mod_basename = irc_basename(path);
#ifdef CHARYBDIS_PROFILE
mod_basename = irc_basename(path);
#ifdef CHARYBDIS_PROFILE
- tmpptr = dlopen(path, RTLD_NOW | RTLD_PROFILE);
+ tmpptr = dlopen(path, RTLD_NOW | RTLD_LOCAL | RTLD_PROFILE);
- tmpptr = dlopen(path, RTLD_NOW);
+ tmpptr = dlopen(path, RTLD_NOW | RTLD_LOCAL);
#endif
if(tmpptr == NULL)
#endif
if(tmpptr == NULL)