summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-libs/pam/files/Linux-PAM-1.1.3-nis.patch')
-rw-r--r--sys-libs/pam/files/Linux-PAM-1.1.3-nis.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys-libs/pam/files/Linux-PAM-1.1.3-nis.patch b/sys-libs/pam/files/Linux-PAM-1.1.3-nis.patch
index f063204eb36f..fdb8b96d9f0d 100644
--- a/sys-libs/pam/files/Linux-PAM-1.1.3-nis.patch
+++ b/sys-libs/pam/files/Linux-PAM-1.1.3-nis.patch
@@ -101,12 +101,10 @@ Index: Linux-PAM-1.1.3/modules/pam_unix/pam_unix_passwd.c
-#if !((__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 1))
+#if (HAVE_YP_GET_DEFAULT_DOMAIN || HAVE_GETDOMAINNAME) && HAVE_YP_MASTER
-+# define HAVE_NIS
++# define HAVE_NIS 1
+#endif
+
+#ifdef HAVE_NIS
-+# include "yppasswd.h"
-+
+# include <rpc/rpc.h>
+
+# if HAVE_RPCSVC_YP_PROT_H
@@ -122,6 +120,8 @@ Index: Linux-PAM-1.1.3/modules/pam_unix/pam_unix_passwd.c
unsigned long versnum, unsigned int proto);
-#endif /* GNU libc 2.1 */
+# endif /* GNU libc 2.1 */
++
++# include "yppasswd.h"
+#endif
/*