Use RTLD_GROUP

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
This commit is contained in:
Luke Howard
2011-01-03 14:05:47 +11:00
committed by Love Hornquist Astrand
parent 9427bcc22e
commit 0b4f6bbfc2

View File

@@ -276,7 +276,11 @@ _gss_load_mech(void)
#define RTLD_LOCAL 0 #define RTLD_LOCAL 0
#endif #endif
so = dlopen(lib, RTLD_LAZY | RTLD_LOCAL); #ifndef RTLD_GROUP
#define RTLD_GROUP 0
#endif
so = dlopen(lib, RTLD_LAZY | RTLD_LOCAL | RTLD_GROUP);
if (!so) { if (!so) {
/* fprintf(stderr, "dlopen: %s\n", dlerror()); */ /* fprintf(stderr, "dlopen: %s\n", dlerror()); */
free(mech_oid.elements); free(mech_oid.elements);