diff options
author | Lars Müller <lars@samba.org> | 2008-12-17 15:39:35 +0100 |
---|---|---|
committer | Lars Müller <lars@samba.org> | 2008-12-17 16:54:10 +0100 |
commit | 6b6977aaf25aa6b5fce49e7aa10711d16cb896e7 (patch) | |
tree | ab227ce4bb34cb4f090d6db16d0925f75b43dc71 /nsswitch/pam_winbind.h | |
parent | 994ef68164c12a3b0494f6491bc9f402c912600f (diff) | |
download | samba-6b6977aaf25aa6b5fce49e7aa10711d16cb896e7.tar.gz |
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>.
Diffstat (limited to 'nsswitch/pam_winbind.h')
-rw-r--r-- | nsswitch/pam_winbind.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/nsswitch/pam_winbind.h b/nsswitch/pam_winbind.h index c6b2c5e7269..d21fc04a78a 100644 --- a/nsswitch/pam_winbind.h +++ b/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 |