summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/util/support/plugins.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/util/support/plugins.c b/src/util/support/plugins.c
index 96b9d948d..f457f3542 100644
--- a/src/util/support/plugins.c
+++ b/src/util/support/plugins.c
@@ -258,17 +258,9 @@ krb5int_open_plugin (const char *filepath, struct plugin_file_handle **h, struct
#endif /* USE_CFBUNDLE */
#ifdef RTLD_GROUP
-# ifdef RTLD_NODELETE
-# define PLUGIN_DLOPEN_FLAGS (RTLD_NOW | RTLD_LOCAL | RTLD_GROUP | RTLD_NODELETE)
-# else
-# define PLUGIN_DLOPEN_FLAGS (RTLD_NOW | RTLD_LOCAL | RTLD_GROUP)
-# endif
+#define PLUGIN_DLOPEN_FLAGS (RTLD_NOW | RTLD_LOCAL | RTLD_GROUP)
#else
-# ifdef RTLD_NODELETE
-# define PLUGIN_DLOPEN_FLAGS (RTLD_NOW | RTLD_LOCAL | RTLD_NODELETE)
-# else
-# define PLUGIN_DLOPEN_FLAGS (RTLD_NOW | RTLD_LOCAL)
-# endif
+#define PLUGIN_DLOPEN_FLAGS (RTLD_NOW | RTLD_LOCAL)
#endif
if (!err) {
handle = dlopen(filepath, PLUGIN_DLOPEN_FLAGS);