heimdal: Use #ifdef HAVE_DLOPEN around functions and variables used by HAVE_DLOPEN

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
This commit is contained in:
Gary Lockyer
2017-09-25 13:58:10 +13:00
committed by Jeffrey Altman
parent 492910ec1e
commit 1c8cae58cc
2 changed files with 7 additions and 0 deletions

View File

@@ -209,6 +209,8 @@ struct plugin2 {
heim_dict_t names;
};
#ifdef HAVE_DLOPEN
static void
plug_dealloc(void *ptr)
{
@@ -258,6 +260,7 @@ resolve_origin(const char *di)
#endif /* !HAVE_DLADDR */
}
#endif /* HAVE_DLOPEN */
/**
* Load plugins (new system) for the given module @name (typically