diff options
author | Lars Müller <lars@samba.org> | 2008-12-17 15:39:35 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2009-01-02 12:44:19 +0100 |
commit | b9068d70bcc563be6df84fc7b9745c12f367741c (patch) | |
tree | 1e7a288ecbc5c25171e1d9b151bfed67547c921b /source/nsswitch/pam_winbind.h | |
parent | 037a1ca4477c3ed09a9f3c39f7190f6f7ecf88ce (diff) | |
download | samba-b9068d70bcc563be6df84fc7b9745c12f367741c.tar.gz samba-b9068d70bcc563be6df84fc7b9745c12f367741c.tar.xz samba-b9068d70bcc563be6df84fc7b9745c12f367741c.zip |
Tweak with pam defines of older Linux versions
PAM_AUTHTOK_RECOVERY_ERR is not defined by older Linux versions (SUSE
Linux Enterprise 9 and RedHat Enterprise 4).
Patch suggested by Philipp Thomas <pth at suse dot de>.
(cherry picked from commit b6e1eb476ccd19209ed135ab8c3b7b2b10422b0e)
Diffstat (limited to 'source/nsswitch/pam_winbind.h')
-rw-r--r-- | source/nsswitch/pam_winbind.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source/nsswitch/pam_winbind.h b/source/nsswitch/pam_winbind.h index 99cd17e5e76..40278387d0b 100644 --- a/source/nsswitch/pam_winbind.h +++ b/source/nsswitch/pam_winbind.h @@ -27,7 +27,14 @@ #include <libintl.h> #endif -#ifndef LINUX +#if defined(LINUX) + +/* newer versions of PAM have this in _pam_compat.h */ +#ifndef PAM_AUTHTOK_RECOVERY_ERR +#define PAM_AUTHTOK_RECOVERY_ERR PAM_AUTHTOK_RECOVER_ERR +#endif + +#else /* !LINUX */ /* Solaris always uses dynamic pam modules */ #define PAM_EXTERN extern |