0006-pam_unix-fix-compilation-in-case-rpc-rpc.h-is-missin.patch (1020B)
1 From 2e3ed4c6fb09f84fede589047d37d11783202d34 Mon Sep 17 00:00:00 2001 2 From: Yousong Zhou <yszhou4tech@gmail.com> 3 Date: Wed, 17 Jun 2015 18:16:18 +0800 4 Subject: [PATCH 6/7] pam_unix: fix compilation in case rpc/rpc.h is missing. 5 6 * modules/pam_unix/pam_unix_passwd.c: conditional compile on the 7 availability of rpc/rpc.h 8 9 Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com> 10 --- 11 modules/pam_unix/pam_unix_passwd.c | 2 +- 12 1 file changed, 1 insertion(+), 1 deletion(-) 13 14 diff --git a/modules/pam_unix/pam_unix_passwd.c b/modules/pam_unix/pam_unix_passwd.c 15 index 2d330e5..970724a 100644 16 --- a/modules/pam_unix/pam_unix_passwd.c 17 +++ b/modules/pam_unix/pam_unix_passwd.c 18 @@ -336,7 +336,7 @@ static int _do_setpass(pam_handle_t* pamh, const char *forwho, 19 } 20 21 if (on(UNIX_NIS, ctrl) && _unix_comesfromsource(pamh, forwho, 0, 1)) { 22 -#ifdef HAVE_NIS 23 +#if defined(HAVE_NIS) && defined(HAVE_RPC_RPC_H) 24 if ((master=getNISserver(pamh, ctrl)) != NULL) { 25 struct timeval timeout; 26 struct yppasswd yppwd; 27 -- 28 1.7.10.4 29