commit e171c09c3bae678db68c3ded5765d602c8438e25
Author: Bo Yang <boyang@samba.org>
Date:   Thu Dec 10 17:20:03 2009 +0800

    s3: Fix build on non-linux platform.
    
    Signed-off-by: Bo Yang <boyang@samba.org>
    (cherry picked from commit b386c3311d8c05ccbd075ab86be2ddace335b73b)

Index: nsswitch/pam_winbind.c
===================================================================
--- nsswitch/pam_winbind.c.orig
+++ nsswitch/pam_winbind.c
@@ -803,6 +803,8 @@ static int wbc_auth_error_to_pam_error(s
 	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;
@@ -833,6 +835,12 @@ static bool _pam_winbind_change_pwd(stru
 	_pam_drop_reply(resp, 1);
 	return retval;
 }
+#else
+static bool _pam_winbind_change_pwd(struct pwb_context *ctx)
+{
+	return false;
+}
+#endif
 
 
 /**
