summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2024-02-11 11:27:55 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2024-02-11 11:49:07 -0800
commit634f47a8aec386b7dedb8f716a65a9b56c0d7de7 (patch)
tree95e9229baf0e63862c65fc4d37a362eb35228625
parent2693b540f90e1a79c277bac7ec9fa5e40d05a281 (diff)
session.c: clear -Wredundant-decls warnings on Solaris
Include standard headers for getpwnam() & crypt() instead of local prototype redefinitions. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--xdm/session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xdm/session.c b/xdm/session.c
index 356ff0e..d138c36 100644
--- a/xdm/session.c
+++ b/xdm/session.c
@@ -134,7 +134,7 @@ extern void endgrent(void);
#ifdef HAVE_GETSPNAM
# include <shadow.h>
#endif
-#if defined(CSRG_BASED) || defined(__GLIBC__)
+#if defined(CSRG_BASED) || defined(__GLIBC__) || defined(__sun)
# include <pwd.h>
# include <unistd.h>
# if defined(__GLIBC__) && !defined(_XOPEN_CRYPT)