summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2003-09-04 03:28:40 +0000
committerTim Potter <tpot@samba.org>2003-09-04 03:28:40 +0000
commitd5bd98dd9a01ab9927f0581df0a21fc9f6c25bbf (patch)
tree9dca04b17e36de62c4f43809cc86e8849c731a08 /source3
parentc7accf6a720d9df0e4cddeeea5ebc53cc382e101 (diff)
downloadsamba-d5bd98dd9a01ab9927f0581df0a21fc9f6c25bbf.tar.gz
samba-d5bd98dd9a01ab9927f0581df0a21fc9f6c25bbf.tar.bz2
samba-d5bd98dd9a01ab9927f0581df0a21fc9f6c25bbf.zip
More FreeBSD PAM compile fixes. Don't redefine PAM_AUTHTOK_RECOVER_ERR
if it already exists. FreeBSD 4.8 doesn't need the redefinition, 5.0 does. (This used to be commit 4a3727b03b0488fa82687014cb476b1971a78be8)
Diffstat (limited to 'source3')
-rw-r--r--source3/nsswitch/pam_winbind.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/nsswitch/pam_winbind.h b/source3/nsswitch/pam_winbind.h
index 865bf7513e..0afcceb6aa 100644
--- a/source3/nsswitch/pam_winbind.h
+++ b/source3/nsswitch/pam_winbind.h
@@ -31,9 +31,12 @@
#define PAM_EXTERN extern
#include <security/pam_appl.h>
+#ifndef PAM_AUTHTOK_RECOVER_ERR
#define PAM_AUTHTOK_RECOVER_ERR PAM_AUTHTOK_RECOVERY_ERR
#endif
+#endif
+
#ifdef HAVE_SECURITY_PAM_MODULES_H
#include <security/pam_modules.h>
#endif