diff options
author | Andrew Stormont <[email protected]> | 2020-08-07 17:34:46 +0100 |
---|---|---|
committer | Andrew Stormont <[email protected]> | 2020-08-10 21:32:58 +0100 |
commit | b29ac234175640730f7b5f0b4b2c1a56908a5586 (patch) | |
tree | c8e92048992a8e80876ed039ef7527c08ed09cc5 /transaction.c | |
parent | f29b9f28d6f9a1f6c4e6fd5db731999eb946574b (diff) |
Fix build on Solaris
Diffstat (limited to 'transaction.c')
-rw-r--r-- | transaction.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/transaction.c b/transaction.c index 5cf22a5..c8ca4d2 100644 --- a/transaction.c +++ b/transaction.c @@ -2,9 +2,15 @@ #include <security/pam_appl.h> #include <string.h> +#ifdef __sun +#define PAM_CONST +#else +#define PAM_CONST const +#endif + int cb_pam_conv( int num_msg, - const struct pam_message **msg, + PAM_CONST struct pam_message **msg, struct pam_response **resp, void *appdata_ptr) { |