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:

committed by
Jeffrey Altman

parent
ac6fa4cadc
commit
434b34d71c
@@ -39,11 +39,14 @@
|
||||
/*
|
||||
* All plugin function tables extend the following structure.
|
||||
*/
|
||||
typedef struct krb5_plugin_common_ftable_desc {
|
||||
struct krb5_plugin_common_ftable_desc {
|
||||
int version;
|
||||
krb5_error_code (KRB5_LIB_CALL *init)(krb5_context, void **);
|
||||
void (KRB5_LIB_CALL *fini)(void *);
|
||||
} krb5_plugin_common_ftable;
|
||||
};
|
||||
typedef struct krb5_plugin_common_ftable_desc krb5_plugin_common_ftable;
|
||||
typedef struct krb5_plugin_common_ftable_desc *krb5_plugin_common_ftable_p;
|
||||
typedef struct krb5_plugin_common_ftable_desc * const krb5_plugin_common_ftable_cp;
|
||||
|
||||
/*
|
||||
* All plugins must export a function named "<type>_plugin_load" with
|
||||
|
Reference in New Issue
Block a user