aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/msteinert/pam/transaction.c
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/msteinert/pam/transaction.c')
-rw-r--r--vendor/github.com/msteinert/pam/transaction.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/vendor/github.com/msteinert/pam/transaction.c b/vendor/github.com/msteinert/pam/transaction.c
index 5cf22a5db3..c8ca4d208e 100644
--- a/vendor/github.com/msteinert/pam/transaction.c
+++ b/vendor/github.com/msteinert/pam/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)
{