From: Pierre Ossman Date: Tue, 3 Mar 2015 15:40:36 +0000 (+0100) Subject: The PAM callback is slightly different on Solaris X-Git-Tag: v1.4.90~33^2~18 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9450b9c142231a3d73ec670a12981db1e8333655;p=tigervnc.git The PAM callback is slightly different on Solaris --- 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;