From 9450b9c142231a3d73ec670a12981db1e8333655 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Tue, 3 Mar 2015 16:40:36 +0100 Subject: [PATCH] The PAM callback is slightly different on Solaris --- common/rfb/pam.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/common/rfb/pam.c b/common/rfb/pam.c index 67b243c7..cb067fda 100644 --- a/common/rfb/pam.c +++ b/common/rfb/pam.c @@ -38,8 +38,13 @@ typedef struct const char *password; } AuthData; +#if defined(__sun) +static int pam_callback(int count, struct pam_message **in, + struct pam_response **out, void *ptr) +#else static int pam_callback(int count, const struct pam_message **in, - struct pam_response **out, void *ptr) + struct pam_response **out, void *ptr) +#endif { int i; AuthData *auth = (AuthData *) ptr; -- 2.39.5