From ec8771774510c0085d832ba34cf376f245f77322 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Thu, 26 Jul 2007 19:12:43 +0000 Subject: [PATCH] Don't try to do dlopen if system doesn't have dlopen. From Rune of Chalmers. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21701 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/plugin.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/krb5/plugin.c b/lib/krb5/plugin.c index ce6ef1d36..5f4e12626 100644 --- a/lib/krb5/plugin.c +++ b/lib/krb5/plugin.c @@ -76,6 +76,8 @@ _krb5_plugin_get_next(struct krb5_plugin *p) * */ +#ifdef HAVE_DLOPEN + static krb5_error_code loadlib(krb5_context context, enum krb5_plugin_type type, @@ -113,6 +115,7 @@ loadlib(krb5_context context, return 0; } +#endif /* HAVE_DLOPEN */ krb5_error_code _krb5_plugin_register(krb5_context context, @@ -181,6 +184,8 @@ _krb5_plugin_find(krb5_context context, } HEIMDAL_MUTEX_unlock(&plugin_mutex); +#ifdef HAVE_DLOPEN + dirs = krb5_config_get_strings(context, NULL, "libdefaults", "plugin_dir", NULL); if (dirs == NULL) { @@ -213,6 +218,7 @@ _krb5_plugin_find(krb5_context context, } if (dirs != sysdirs) krb5_config_free_strings(dirs); +#endif /* HAVE_DLOPEN */ if (*list == NULL) { krb5_set_error_string(context, "Did not find a plugin for %s", name);