Tweak with pam defines of older Linux versions
[abartlet/samba.git/.git] / nsswitch / pam_winbind.h
index c6b2c5e72695499c5365ee2f3e9eef09dfc4a6e2..d21fc04a78aa95d90ef4a65344aaa13fe0eb7eea 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