Fix build on Solaris

This commit is contained in:
Andrew Stormont
2020-08-07 17:34:46 +01:00
parent f29b9f28d6
commit b29ac23417

View File

@@ -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)
{