From 69dc3e187cc00ae7aeb75f80cfa2fec4f09ca18a Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Wed, 5 May 2010 01:42:02 +1200 Subject: [PATCH] OpenSolaris: PAM conversation defined non-const --- helpers/basic_auth/PAM/pam_auth.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/helpers/basic_auth/PAM/pam_auth.c b/helpers/basic_auth/PAM/pam_auth.c index 7ece95e86f..b0d4d40a07 100644 --- a/helpers/basic_auth/PAM/pam_auth.c +++ b/helpers/basic_auth/PAM/pam_auth.c @@ -100,7 +100,11 @@ static char *password = NULL; /* Workaround for Solaris 2.6 brokenness */ * expects a single converstation message of type PAM_PROMPT_ECHO_OFF. */ static int +#if _SQUID_SOLARIS_ +password_conversation(int num_msg, struct pam_message **msg, struct pam_response **resp, void *appdata_ptr) +#else password_conversation(int num_msg, const struct pam_message **msg, struct pam_response **resp, void *appdata_ptr) +#endif { if (num_msg != 1 || msg[0]->msg_style != PAM_PROMPT_ECHO_OFF) { fprintf(stderr, "ERROR: Unexpected PAM converstaion '%d/%s'\n", msg[0]->msg_style, msg[0]->msg); -- 2.47.3