]> source.dussan.org Git - tigervnc.git/commitdiff
The PAM callback is slightly different on Solaris
authorPierre Ossman <ossman@cendio.se>
Tue, 3 Mar 2015 15:40:36 +0000 (16:40 +0100)
committerPierre Ossman <ossman@cendio.se>
Tue, 3 Mar 2015 15:40:36 +0000 (16:40 +0100)
common/rfb/pam.c

index 67b243c77713ff721e92bd5a524d87e8c6fef4e0..cb067fda446e61ead4b70e2daee40aaeb3c64821 100644 (file)
@@ -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;