diff options
Diffstat (limited to 'compat')
-rw-r--r-- | compat/pam_compat.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/compat/pam_compat.h b/compat/pam_compat.h index b4b5397..b4923f6 100644 --- a/compat/pam_compat.h +++ b/compat/pam_compat.h @@ -37,6 +37,14 @@ #include <security/pam_modutil.h> #endif /* HAVE_SECURITY_PAM_MODUTIL_H */ +/* some systems define PAM_AUTHTOK_RECOVER_ERR but not + PAM_AUTHTOK_RECOVERY_ERR */ +#ifndef PAM_AUTHTOK_RECOVERY_ERR +#ifdef PAM_AUTHTOK_RECOVER_ERR +#define PAM_AUTHTOK_RECOVERY_ERR PAM_AUTHTOK_RECOVER_ERR +#endif /* PAM_AUTHTOK_RECOVER_ERR */ +#endif /* not PAM_AUTHTOK_RECOVERY_ERR */ + /* define our own replacement pam_get_authtok() if it wasn't found */ #ifndef HAVE_PAM_GET_AUTHTOK int pam_get_authtok(pam_handle_t *pamh,int item,const char **authtok,const char *prompt); |