From 4ce09656536911d9048519b8ee18e53353c9cae8 Mon Sep 17 00:00:00 2001 From: Thorsten Kukuk Date: Thu, 6 Apr 2023 14:44:07 +0200 Subject: configure: Disable NIS if header files are missing configure.ac: Disable NIS if RPC or YP header files are missing modules/pam_unix/support.c: Use HAVE_NIS to check for header file presence modules/pam_unix/pam_unix_passwd.c: Use HAVE_NIS, too --- modules/pam_unix/pam_unix_passwd.c | 10 ++-------- modules/pam_unix/support.c | 2 +- 2 files changed, 3 insertions(+), 9 deletions(-) (limited to 'modules/pam_unix') diff --git a/modules/pam_unix/pam_unix_passwd.c b/modules/pam_unix/pam_unix_passwd.c index d5f5e51f..c3417413 100644 --- a/modules/pam_unix/pam_unix_passwd.c +++ b/modules/pam_unix/pam_unix_passwd.c @@ -75,14 +75,8 @@ #ifdef HAVE_NIS # include - -# ifdef HAVE_RPCSVC_YP_PROT_H -# include -# endif - -# ifdef HAVE_RPCSVC_YPCLNT_H -# include -# endif +# include +# include # include "yppasswd.h" diff --git a/modules/pam_unix/support.c b/modules/pam_unix/support.c index 23a30498..043273d2 100644 --- a/modules/pam_unix/support.c +++ b/modules/pam_unix/support.c @@ -19,7 +19,7 @@ #include #include #include -#ifdef HAVE_RPCSVC_YPCLNT_H +#ifdef HAVE_NIS #include #endif -- cgit v1.2.1