From: Gary Lockyer Date: Mon, 25 Sep 2017 01:15:28 +0000 (+1300) Subject: heimdal: Use #ifdef HAVE_DLOPEN around functions used only by HAVE_DLOPEN X-Git-Tag: talloc-2.3.2~914 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e8f3fdf82ab1ed4ecb8edcc284168dc85dadc49;p=thirdparty%2Fsamba.git heimdal: Use #ifdef HAVE_DLOPEN around functions used only by HAVE_DLOPEN Signed-off-by: Gary Lockyer Reviewed-by: Douglas Bagnall --- diff --git a/source4/heimdal/lib/krb5/plugin.c b/source4/heimdal/lib/krb5/plugin.c index 9303b6c615b..230bd637abc 100644 --- a/source4/heimdal/lib/krb5/plugin.c +++ b/source4/heimdal/lib/krb5/plugin.c @@ -394,6 +394,8 @@ struct plugin2 { heim_dict_t names; }; +#ifdef HAVE_DLOPEN + static void plug_dealloc(void *ptr) { @@ -404,6 +406,7 @@ plug_dealloc(void *ptr) dlclose(p->dsohandle); } +#endif /* HAVE_DLOPEN */ void _krb5_load_plugins(krb5_context context, const char *name, const char **paths)