]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Tweak with pam defines of older Linux versions
authorLars Müller <lars@samba.org>
Wed, 17 Dec 2008 14:39:35 +0000 (15:39 +0100)
committerKarolin Seeger <kseeger@samba.org>
Fri, 2 Jan 2009 11:44:19 +0000 (12:44 +0100)
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)

source/nsswitch/pam_winbind.h

index 99cd17e5e76b9f39d88c5a7289badf5100ec9ac4..40278387d0ba1f2293d569d32c27221c96ddd382 100644 (file)
 #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