lib/krb5: prevent build failures of krb5_plugin_common on Windows

The Microsoft compiler cannot handle multiple const modifiers
for the same type.    It is also unhappy with the output pointer
parameter being declared const.

This change introduces new typedefs and cast of the dlsym() return
type to prevent warnings.

Change-Id: Ia92645efab8d2ec6745339a6f47c690782ae730a
This commit is contained in:
Jeffrey Altman
2019-02-07 23:04:16 -05:00
committed by Jeffrey Altman
parent ac6fa4cadc
commit 434b34d71c
3 changed files with 13 additions and 10 deletions

View File

@@ -41,6 +41,6 @@ krb5_error_code KRB5_CALLCONV
ccache_ops_plugin_load(krb5_context context,
krb5_get_instance_func_t *func,
size_t *n_ftables,
const krb5_plugin_common_ftable *const **ftables);
krb5_plugin_common_ftable_p **ftables);
#endif /* HEIMDAL_KRB5_CCACHE_PLUGIN_H */