From 0fda81ee5bdc656554d55fb8d6f40c39bae3a3bf Mon Sep 17 00:00:00 2001 From: Thorsten Kukuk Date: Tue, 14 Jun 2011 15:28:05 +0200 Subject: 2011-06-14 Thorsten Kukuk * configure.in: Check for libtirpc bye default. * libpam/Makefile.am: Add support for libtirpc. * modules/pam_access/Makefile.am: Likewise. * modules/pam_unix/Makefile.am: Likewise. * modules/pam_unix/pam_unix_passwd.c: Change ifdefs for new libtirpc support. * modules/pam_unix/yppasswd_xdr.c: Only compile if we have rpc/rpc.h. --- modules/pam_unix/yppasswd_xdr.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules/pam_unix/yppasswd_xdr.c') diff --git a/modules/pam_unix/yppasswd_xdr.c b/modules/pam_unix/yppasswd_xdr.c index 0b95b82b..f2b86a56 100644 --- a/modules/pam_unix/yppasswd_xdr.c +++ b/modules/pam_unix/yppasswd_xdr.c @@ -12,6 +12,8 @@ #include "config.h" +#ifdef HAVE_RPC_RPC_H + #include #include "yppasswd.h" @@ -34,3 +36,5 @@ xdr_yppasswd(XDR * xdrs, yppasswd * objp) return xdr_string(xdrs, &objp->oldpass, ~0) && xdr_xpasswd(xdrs, &objp->newpw); } + +#endif -- cgit v1.2.3