git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bfbccbb
)
s3: Fix build on non-linux platform.
author
Bo Yang
<boyang@samba.org>
Thu, 10 Dec 2009 09:20:03 +0000
(17:20 +0800)
committer
Bo Yang
<boyang@samba.org>
Thu, 10 Dec 2009 09:22:25 +0000
(17:22 +0800)
Signed-off-by: Bo Yang <boyang@samba.org>
nsswitch/pam_winbind.c
patch
|
blob
|
history
diff --git
a/nsswitch/pam_winbind.c
b/nsswitch/pam_winbind.c
index 2563f383efa80c1ff7ad56c21c5f75ad6dac7ba9..2e6520c1ce076e21995775908c889b1ac29d270f 100644
(file)
--- 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
/**