summaryrefslogtreecommitdiff
path: root/nsswitch
diff options
context:
space:
mode:
authorBo Yang <boyang@samba.org>2009-12-10 17:20:03 +0800
committerBo Yang <boyang@samba.org>2009-12-10 17:22:25 +0800
commitb386c3311d8c05ccbd075ab86be2ddace335b73b (patch)
tree54c88d50b2793636cc7e6c0b73c565ccbaa1db08 /nsswitch
parentbfbccbbc2bcfd3b522176ba381da97b6f679c5fc (diff)
downloadsamba-b386c3311d8c05ccbd075ab86be2ddace335b73b.tar.gz
s3: Fix build on non-linux platform.
Signed-off-by: Bo Yang <boyang@samba.org>
Diffstat (limited to 'nsswitch')
-rw-r--r--nsswitch/pam_winbind.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/nsswitch/pam_winbind.c b/nsswitch/pam_winbind.c
index 2563f383efa..2e6520c1ce0 100644
--- a/nsswitch/pam_winbind.c
+++ b/nsswitch/pam_winbind.c
@@ -807,6 +807,8 @@ static int wbc_auth_error_to_pam_error(struct pwb_context *ctx,
return pam_winbind_request_log(ctx, ret, username, fn);
}
+/* PAM_RADIO_TYPE is linux-only. */
+#ifdef LINUX
static bool _pam_winbind_change_pwd(struct pwb_context *ctx)
{
struct pam_message msg, *pmsg;
@@ -837,6 +839,12 @@ static bool _pam_winbind_change_pwd(struct pwb_context *ctx)
_pam_drop_reply(resp, 1);
return retval;
}
+#else
+static bool _pam_winbind_change_pwd(struct pwb_context *ctx)
+{
+ return false;
+}
+#endif
/**